[Insight-users] efficient image reset

asamwm asamwm at gmail.com
Fri Jun 19 18:42:54 EDT 2009


Hi,
I want to reset an image multiple times in a loop
(a binary image, with only a small fraction of pixels set to 1 in each
iteration).

So assuming the contents in the previous iteration are to be discarded,
which is the best way to go about  resetting the image?
I could find FillBuffer(0), but that would probably iterate
through the entire 3D stack..
If I use initalize() , do I still need to SetRegions() and allocate() ? is
this faster?

Or should I reset the pixels that were set in the previous iteration
manually?

Thanks.
Hussein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090619/be0fd502/attachment.htm>


More information about the Insight-users mailing list