[Insight-developers] ImageRandomConstIteratorWithIndex

Luis Ibanez luis.ibanez@kitware.com
Thu, 20 Feb 2003 17:20:45 -0500


Josh,

The modifications that you proposed for
IsAtBegin() and GoToEnd() look good.

Would you like to make the changes in the code ?


Luis


-----------------------

Lydia Ng wrote:

> Dear Josh and Luis,
> 
> For the metric I only have use:
> 
>       it.GoToBegin();
> 	while(!it.IsAtEnd())
>         {
>         ++it;
>         }
> 
> I remember went Luis made this we weren't quite sure as to how to treat
> the operator--. For consistency we went something that works properly
> for
> 
>       it.GoToEnd();
>       while (!it.IsAtBegin() )
>          {
>          --it;
>          }
> 
> 
> Making operator-- decrement the m_NumberOfSamplesDone would be a good
> tool.
> So I don't mind the change. Just make sure the documentation say that
> the above scenario does not work.
> 
> - Lydia
> 
>