Commit c60439c
committed
PERF: Locally cache ComputeIndex() result in Watershed Segmenter
Avoided calling `ImageConstIterator::ComputeIndex()` multiple times on one and
the same iterator, in one and the same iteration, by caching the computed index,
in `watershed::Segmenter::GradientDescent`1 parent d086c8c commit c60439c
File tree
1 file changed
+3
-2
lines changed- Modules/Segmentation/Watersheds/include
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
824 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
825 | 826 | | |
826 | 827 | | |
827 | 828 | | |
| |||
0 commit comments