[Insight-users] Iterator: SetPosition help

Luis Ibanez luis.ibanez at kitware.com
Thu May 25 22:21:25 EDT 2006


Hi Kathy,

Please read the ITK Software Guide

    http://www.itk.org/ItkSoftwareGuide.pdf

In particular the "Image Iterators" Chapter.

You will find that you can define the initial position
of the iterator by setting the "Start" index of the
Region that you pass to the constructor of the iterator.



   Regards,


      Luis



===============================
smythek at u.washington.edu wrote:
> Hi ITK,
> 
> I would like my iterator to start at a specified place in my ITKimage, 
> and the software guide says I should use the SetPosition(indexType).  
> But I try to call it like iterator.SetPosition(dstIndex) and I get an 
> error.
> 
> I have two questions:  how do I correctly call the SetPosition for the 
> iterator, and can the IndexType be double?
> 
> Thank you,
> 
> Kathy
> 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 




More information about the Insight-users mailing list