Hi all,<br>I sent this question last week but did not receive any answer yet.<br><br>Rephrasing:<br><br>I create a binary itk image (3D) and fill it manually in order to do connected components.<br>This process iterates several times and <br>
in each iteration I need the binary image to be reset to all zeros.<br><br>Q: which way is more efficient?<br>  1- image-&gt;Initialize()  &gt; If so, do I still need to SetRegions() and allocate() ? <br>  2-  FillBuffer(0), but that would probably iterate through the entire 3D stack..<br>
  3-  Or should I keep track of the pixels from the previous iteration<br>      so I can reset them manually?<br><br>Thanks.<br><br>