[ITK-users] ImageRegionIteratorWithIndex

Williams, Norman K norman-k-williams at uiowa.edu
Fri Oct 24 10:06:41 EDT 2014


Normally, to visit every pixel in an Image, you’d use an ImageRegionIterator, or ImageRegionConstIterator.  The latter you’d use when you don’t want to or cannot modify the image.

ImageRegionIteratorWithIndex (and ImageRegionConstIteratorWithIndex) are, as Jim Miller said, optimized for reporting the index of the voxel currently referenced by the iterator.

A very common use would be to iterate through an image, but use the index to access another image’s voxels as well. Generally, you’d use an iterator for each image  but there are cases — like when you only occasionally use the index to access another image — where it makes sense not to bother with the second iterator.

From: Abdul Abdul <abdul.sw84 at gmail.com<mailto:abdul.sw84 at gmail.com>>
Date: Friday, October 24, 2014 at 4:00 AM
To: Insight <insight-users at itk.org<mailto:insight-users at itk.org>>
Subject: [ITK-users] ImageRegionIteratorWithIndex

Hello,

What is the purpose of ImageRegionIteratorWithIndex<http://www.itk.org/Doxygen/html/classitk_1_1ImageRegionIteratorWithIndex.html>? I didn't get the whole point from the documentation. Can you kindly just clarify it a bit?

Thanks.


________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141024/a654956f/attachment.html>


More information about the Insight-users mailing list