I installed ITK on mac python 2.7 using command “python -m pip install itk”, and when I wanted to create an ImageRegionIterator object, it had an error – “AttributeError: ‘LazyITKModule’ object has no attribute ‘ImageRegionIterator’”. I had read the source code and found that there isn’t any file containing ImageRegionIterator.
I need to use the ImageRegionIterator and ImageRegionConstIterator in python. How can I create an ImageRegionIterator object in python script?
Thanks a lot!