Commit f431686
committed
COMP: Use ImageRegionIteratorWithIndex for SSIM output (legacy-removed)
The output iterator in StructuralSimilarityImageFilter was a plain
ImageRegionIterator and the per-pixel loop called outIt.GetIndex()
to test interior-region membership for the mean accumulator. The
GetIndex() method on the index-less iterator is wrapped in
ITK_FUTURE_LEGACY_REMOVE and emits a deprecation warning that
CI's Linux legacy-removed build promotes to an error.
Switch the output iterator to ImageRegionIteratorWithIndex so the
index is tracked natively, eliminating the deprecation entirely.1 parent 46fabd3 commit f431686
File tree
1 file changed
+6
-2
lines changed- Modules/Filtering/ImageCompare/include
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| |||
0 commit comments