[Insight-developers] iterators in a reverse direction?
Damion Shelton
dmsst59+@pitt.edu
Wed, 16 May 2001 16:25:37 -0400
Hi...
Is there an easy way to iterate through an image in the "reverse" of the
normal direction? The code fragment:
for ( outIt.Begin(); !outIt.IsAtEnd(); ++outIt)
iterates forwards. Prior to looking at the documentation, I assumed that the
line:
for ( outIt.End(); !outIt.IsAtBegin(); --outIt)
would also be legal; the "--" operator is not defined, though. So, how do I
go about iterating backwards.
Thanks,
-Damion-