[Insight-developers] Re: Line Iterator problem
Luis Ibanez
luis.ibanez@kitware.com
Wed, 06 Mar 2002 13:40:17 -0500
Bradley,
For this particular way of going through the image we created the
itkImageReflectiveIterator.
It does exactly that, line by line goes forward then backward and
then jump to the next line. It was designed for the Danielson Distance.
(though currently it is suspected of visiting too many time each pixels...)
Your suggestion of the NextLineSamePosition() sound good to me.
It is clear enough and will give the choice to the user without affecting
the existing code.
Luis
--------------------------------------------
Bradley Wyman wrote:
>Luis,
>
> My application, which initiated this change, did a forward then
>backward pass through each line of data and hence the pointer ended up
>at the beginning of the line. Going to the beginning of the next line
>was the desired result. However, that being said, it might be more
>versatile if the Iterators provided a method for moving to the
>homologous location in the next line.
>
> Changing Next/PreviousLine() to go to the homologous location
>then puts the burden on the user to remember to add the
>GoToBeginOfLine() function. In addition it would require modification
>of the existing code. Perhaps another function could used to used for
>this alternative behavior ( NextLineSamePosition()? ).
>
> Then again I don't have a specific application in mind for this
>new feature so I'm not sure of the utility. There's my 2 cents.
>_____________________________________________
>Brad Wyman, Ph.D. Insightful Corp.
>1700 Westlake Ave. N (206)283-8802 x256
>Seattle, WA 98109 Fax: (206)283-6310
>bwyman@insightful.com
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
>