[Insight-users] Help with iterators

David Doria daviddoria at gmail.com
Thu Dec 1 07:52:12 EST 2011


On Thu, Dec 1, 2011 at 6:45 AM, anna han wan <anna.han.wan at gmail.com> wrote:
> Dear itk users,
>
> I read most of itk software guide chapter 11(iterators) but I still confused
> which iterators I can use efficiently in my application.
>
> Basically, what I want to do is to divide my volume (3D image) into a set of
> rectangular boxes and within each box I compute a measure (mean CT value,
> max and other application based measures).
>
> So what I am thinking is to use two iterators:  one iterator to move the
> centre of each box within the image and the second iterator is to move
> within each box to compute the measures?  Am I right in my plan? Is there
> another efficient way to deal with the problem?
>
> Thank you for your time and help.
>
> Anna,

I think you are just looking for itkNeighborhoodIterator:

http://www.itk.org/Wiki/ITK/Examples/Iterators/NeighborhoodIterator

David


More information about the Insight-users mailing list