<br><div class="gmail_quote">On Mon, Oct 25, 2010 at 11:14 AM, Dan Mueller <span dir="ltr">&lt;<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi David,<br>
<br>
As Karthik says, a true &quot;in-place&quot; filter overwrites each pixel of the<br>
input buffer with the resultant output pixel value and then passes the<br>
input buffer as its output. All filters capable of this should inherit<br>
from itk::InPlaceImageFilter (if you find one that doesn&#39;t, please let<br>
us know). You to turn on/off this functionality eg.<br>
filter-&gt;InPlaceOn(), filter-&gt;InPlaceOff().<br>
<br>
The itk::MeanImageFilter does not inherit from<br>
itk::InPlaceImageFilter, the reason being it is a neighbourhood<br>
operation; neighbourhood operations *cannot* be run in-place (the<br>
output for one pixel may be used as the input for another pixel!).<br></blockquote><div><br>Indeed.. thanks for pointing this out.. You will give you funny results if you try out the GraftOutput thing on the MeanImageFilter.<br>
<br><br></div></div><br>