#include <itkImageRegionIterator.h>
The itk::ImageRegionIterator is optimized for iteration speed and is the first choice for iterative, pixel-wise operations on an image. ImageRegionIterator is the least specialized of the ITK image iterator classes. ImageRegionIterator is templated over the image type, and is constrained to walk only within the specified region and along a line parallel to one of the coordinate axes, "wrapping" to the next line as it reaches the boundary of the image. To walk the entire image, specify the region to be image->GetRequestedRegion().
Most of the functionality is inherited from the ImageRegionConstIterator. The current class only adds write access to image pixels.
1.4.7 written by Dimitri van Heesch,
© 1997-2000