[Insight-users] How to call a destructor?

robert tamburo robert.tamburo at gmail.com
Wed Jan 12 12:18:23 EST 2011


ImageSliceIteratorWithIndex iterates along planes (slices) of an image.

On Wed, Jan 12, 2011 at 11:49 AM, Sameer Zaheer <bless.sins at gmail.com> wrote:
> Hi,
> I'm having some troubles with calling a destructor to a LineConstIterator
> object. My code looks something like this:
> typedef itk::LineConstIterator<ImageType> IteratorType;
> //define image
> //define imageIndex and farPoint
> IteratorType it(image, imageIndex, farPoint);
> IteratorType ~it();
> The reason I want to destroy the object is because I want to use it again,
> but with different firstIndex and lastIndex (I'm using iterator in a while
> loop). So you know how to set the firstIndex and lastIndex of the iterator
> (after it has been created), that could work too.
> And the reason I'm repeatedly setting the firstIndex and lastIndex, is
> because I want to iterate over a plane (my image is 3D), and didn't find any
> class that does that. Again, if there is such a class, let me know.
> Thanks,
> --
> Sameer Zaheer
> Engineering Science 1T0+PEY
> University of Toronto
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list