[Insight-users] request: itkImageSliceReverseConstIterator

Luis Ibanez luis.ibanez at kitware.com
Fri, 30 Apr 2004 16:10:08 -0400


Hi Jean-Michel,

There is not particular reason why the Reverse family
of iterators have not been implemented. They simply
have not been needed so far for implementing any of
the existing algorithms.

Please feel free to add this as a feature request in
the bug tracker.

Of course, if you feel motivated for extending the functionlity
of the current Slice iterator, that is, adding the GoToEndOfSlice()
method and then use it with its existing operator--(), we will be
happy to have your modified version and commit it to the toolkit.



    Thanks,


       Luis



-----------------------------------
jean-michel.rouet at philips.com wrote:

> Hi all,
> 
> Is there a reason for not having a itkImageSliceReverseConstIterator ?
> 
> If I want to parse a particular slice of a 3D image say of dimension 128 x 
> 64 x 32,
> How can I set an iterator to start at position  127 63 Z, and then 
> decreases Y coordinates faster than X coordinates
> 
>  127 63 Z
>  127 62 Z
>  127 61 Z 
>  ...
>  127 1 Z
>  127 0 Z
>  126 63 Z
>  126 62 Z
> 
> and so on until
>  0 0 Z
> 
> I was expecting either:
>    1) a reverse iterator to exist
>    2) or a GoToEndOfSlice() method exist in the 
> itkImageSliceConstIterator, where IsAtReverseEndOfSlice(), 
>         PreviousLine() and other methods are implemented so far.
> 
> I know that I can find turn arounds for this situation, my mail here is 
> more a feature request for next releases.
> 
> Regards,
> 
> Jean-Michel.
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>