[Insight-developers] Neighborhood Tools

Miller, James V (CRD) millerjv at crd.ge.com
Thu Oct 19 09:34:57 EDT 2000


Actually, Josh's NeighborhoodIterators are doing the right thing.  The iterators should take in
Image* instead of Image::Pointer in order to allow a subclass of Image to be passed to the iterators.

Note that in constructing the iterators, you can pass it your smart pointer to the image, which will
automatically be "cast" back to the raw image pointer. The iterator stores the pointer back into a
smart pointer because it needs to holds a persistent reference to the image.

I have changed the image iterators to take real pointers.  I have not checked it in yet because I am
still working through the remainder of the insight code, mapping it to the revise pipeline
architecture.

Jim

-----Original Message-----
From: ASHES D GANGULY [mailto:ashes at email.unc.edu]
Sent: Wednesday, October 18, 2000 10:26 PM
To: Joshua Cates
Cc: Insight-Developers
Subject: Re: [Insight-developers] Neighborhood Tools




  The constructors of NeighborhoodIterator and the iterators that derive
from it take in a Image* instead of an Image::Pointer. It is then assigned
to m_Image which is a SmartPointer<Image>.

Regards,
  ashes



_______________________________________________
Insight-developers mailing list
Insight-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers




More information about the Insight-developers mailing list