[Insight-developers] Const Image Iterators
Luis Ibanez
ibanez@cs.unc.edu
Wed, 21 Feb 2001 23:29:19 -0500
Hi,
We don't have yet Const iterators for going
through images declared as ConstPointers.
At first view the solution seems to duplicate the
base ImageIteratorWithIndex class to create a
ConstImageIteratorWithIndex. This second
will have a constructor with a ConstPointer to an
image and will lack the Set() method. It will allow
to perform only Get()'s.
Then... should we duplicate the other iterators deriving
from ImageIterartorWithIndex ?
This is how it is done in STL, it seems to be the
only way to get a consistent set of iterators
Any ideas ?
Thanks
Luis