Hi,<div><br></div><div>I'm having some troubles with calling a destructor to a LineConstIterator object. My code looks something like this:</div><div><br></div><div>typedef itk::LineConstIterator<ImageType> IteratorType;</div>
<div>//define image</div><div>//define imageIndex and farPoint</div><div><div>IteratorType it(image, imageIndex, farPoint);</div><div>IteratorType ~it();</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Thanks,</div><br>-- <br><div>Sameer Zaheer</div>
<div>Engineering Science 1T0+PEY</div>
<div>University of Toronto</div><br>
</div>