[Insight-developers] Modified FloodFill iterator (remember regions)
David Doria
daviddoria+itk at gmail.com
Mon Sep 14 13:36:39 EDT 2009
I am modifying the flood fill iterator such that a second iteration of the
iterator using a different seed will return a mutually exclusive region
(rather than growing into a region that has already been assigned an id, for
example). The m_TemporaryPointer already stores exactly the information
needed to do this, but most of the filters that use a flood fill iterator
create a new instance of the iterator each time they are run, causing this
information to be lost. Does anyone have any thoughts on if it makes more
sense to:
1) store a pointer to the temporary image in the *Filter class and pass it
to the iterator's constructor, indicating "use this temporary image to start
with"
or
2) store the iterator instance in the *Filter class so that a new instance
is not created each time the filter is run. The iterator is then responsible
for saving the temporary image
Any comments?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090914/5fc59ef9/attachment.htm>
More information about the Insight-developers
mailing list