-
-
Notifications
You must be signed in to change notification settings - Fork 715
BUG: Fix itkFrequencyImageRegionIterator #4845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix itkFrequencyImageRegionIterator #4845
Conversation
dzenanz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Modules/Filtering/ImageFrequency/include/itkFrequencyImageRegionConstIteratorWithIndex.h
Outdated
Show resolved
Hide resolved
|
Thanks @phcerdan but are those two iterators really useful? Given the fact that these two did not compile in the six years of their existence, why not remove them by now? If they are really useful (next to all the other iterator types that we have already in ITK), can you please add a test or example to show their usefulness? |
|
Hi @N-Dekker, ITK is a library, not an application, we provide filters that are useful for others. This iterator in particular is a really simple extension of the image iterator to provide the GetFrequency() functions that are used for FrenquencyFunctors. This iterator in particular captures the rare (but existing, I have worked with those images from diffusion experiments in optics) where the input image is already in the frequency domain. It is here for completion on the frequency iterators, and ability to work with this kind of images. The frequency iterators have all the same interface, and it is tested, I don't think it is necessary to add an extra test. beyond the instantiation test that is already in place, for this one, which is the simplest. |
|
@phcerdan OK, thanks for your explanation. Then I just hope that these two iterators are really going to be used! In general I believe it's a good thing to regularly clean-up the library, and remove unused components. Can you please still run clang-format, and amend (+ force-push) your commit? |
Test it via recently added gtest (see InsightSoftwareConsortium#4827) Closes InsightSoftwareConsortium#4828
32b5990 to
a1a1fce
Compare
|
Done |
Test it via recently added gtest (see #4827)
Closes #4828
PR Checklist