Deprecate ImageConstIterator::GetIndex(), use ComputeIndex() in tests and examples#5803
Conversation
b7d5400 to
a422e03
Compare
hjmjohnson
left a comment
There was a problem hiding this comment.
@N-Dekker This looks good as is. Adding a note to this change in the migration guide now will be useful in the future when the GetIndex is removed in a few years form now.
Thanks, Hans. I'm adding the following note, please check:
|
Replaced `outputIt.GetIndex()` with `outputIt.ComputeIndex()`, in `PolylineMaskImageFilter::GenerateData()`. Follow-up to pull request InsightSoftwareConsortium#5787 commit cc5b301 "STYLE: Replace GetIndex() calls on iterators with ComputeIndex()"
Replaced function calls of the form `iterator.GetIndex()` with `iterator.ComputeIndex()`, for iterators derived from `ImageConstIterator`, in tests. Follow-up to pull request InsightSoftwareConsortium#5787 commit cc5b301 "STYLE: Replace GetIndex() calls on iterators with ComputeIndex()"
Replaced function calls of the form `iterator.GetIndex()` with `iterator.ComputeIndex()`, for iterators derived from `ImageConstIterator`, in Modules/Registration/Common/test/RegistrationITKv3 Follow-up to pull request InsightSoftwareConsortium#5787 commit cc5b301 "STYLE: Replace GetIndex() calls on iterators with ComputeIndex()"
Replaced function calls of the form `iterator.GetIndex()` with `iterator.ComputeIndex()`, for iterators derived from `ImageConstIterator`, in Examples. Follow-up to pull request InsightSoftwareConsortium#5787 commit cc5b301 "STYLE: Replace GetIndex() calls on iterators with ComputeIndex()"
Indicated that `ImageConstIterator::GetIndex()` will be removed in the future. Adding a note to the migration guide. The name "ComputeIndex" appears much clearer, as it indicates that it does a potentially expensive computation, in order to retrieve the index. Follow-up to pull request InsightSoftwareConsortium#5787 commit 3e5a75a "ENH: Add `ComputeIndex()` member function to ImageConstIterator"
a422e03 to
2b7c077
Compare
|
@N-Dekker I am seeing some new build errors on the dashboard that I presume is related to this work: https://open.cdash.org/viewBuildError.php?buildid=11052824 There may be others. Are you able to address these issues? |
|
@blowekamp Thanks, I think you're presumption is correct! Is https://open.cdash.org/viewBuildError.php?buildid=11052824 built using
|
I think that is a reasonable presumption. You'd have to dig into the configuration log and files on the dashboard to confirm. |
|
OK, thanks @blowekamp, I'll do a local build with Module_ITKReview enabled, to see if I can reproduce it locally. |
Replaced function calls of the form `iterator.GetIndex()` with
`iterator.ComputeIndex()`, for iterators derived from `ImageConstIterator`, in
"Modules/Nonunit/Review"
Fixes compile errors that occur when compiling with `Module_ITKReview=ON` _and_
`ITK_FUTURE_LEGACY_REMOVE=ON`, like:
error: no member named 'GetIndex' in 'itk::ImageRegionConstIterator'
As occurred at RogueResearch24/Mac13.x-AppleClang-dbg-Universal:
https://open.cdash.org/viewBuildError.php?buildid=11052824
Reported by Bradley Lowekamp at
InsightSoftwareConsortium#5803 (comment)
ComputeIndex()member function to ImageConstIterator #5787