[Insight-developers] doubts regarding incrementing the operator

thanga aarthy manoharan rthy4u at gmail.com
Fri Mar 18 14:16:12 EDT 2011


sir,

    i have to increment two by two like the iteration starts from one when
the iterator starts from 1 it has to move to 3 den in a for loop..........

normal for loop is for (it.GoToBegin(), out.GoToBegin(); !it.IsAtEnd();
++it, ++out)

since i have to increment the input image as 1,3,5,7 i used a for loop like
shown below

for (it.GoToBegin(), out.GoToBegin(); !it.IsAtEnd(); it+=2, ++out) but this
is not working ........ can u help me to find a way to increment the
operator by 2 .....


Thank You sir ...........

                                                          Yours Truly



                                                                  Aarthy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110318/4bd70b5e/attachment.htm>


More information about the Insight-developers mailing list