[Insight-developers] ImageRandomIterator ready
Lorensen, William E (Research)
lorensen@crd.ge.com
Wed, 17 Apr 2002 11:39:33 -0400
Why not make the nonconst iterator a subclass of the const one, overriding the appropriate methods. I
would hold off on introducing a new concept like a walker...
-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
Sent: Wednesday, April 17, 2002 11:01 AM
To: Lorensen, William E (Research)
Cc: Miller, James V (Research); Lydia Ng;
insight-developers@public.kitware.com
Subject: Re: [Insight-developers] ImageRandomIterator ready
Good idea !
Right now it is just duplicating code.
I'll look into that.
Probably the best way to do it is to
separate the algorithm for the walk
into a "Walker" class, so this iterator
will work in conjunction with a clas:
"itk::RandomWalker"
It will look a lot like the
ImageFunctorFilters.
Luis
=====================
Lorensen, William E (Research) wrote:
> Perhaps this iterator would be a good experiment to reduce code duplication in the const/nonconst
> versions.
>