<html><body><div>Hi</div><div><br></div><div>In a previous post, I asked if there was a best-practice way to apply a filter to a sub-region of an ImageData 2D object.</div><div><br></div><div>For instance, I want to median filter a small area in the center of the image, while passing the rest of the pixels through the chain unchanged.</div><div><br></div><div><br></div><div><div>Image</div><div>_________________________________</div><div>| |</div><div>| ________ |</div><div>| | filtered | |</div><div>| | area | |</div><div>| |--------------| |</div><div>| |</div><div>----------------------------------------------------------</div><div><br></div><div><br></div></div><div><br></div><div>I didn't receive a response, and have looked at vtkImageMask and vtkImageStencil.</div><div><br></div><div>vtkImageMask doesn't quite do what I want sets the pixels outside the mask to a constant color.</div><div><br></div><div>vtkImageStencil - is this capable of doing what I want to do? I'm not quite sure how it works.....</div><div><br></div><div><br></div><div>Image</div><div>_________________________________</div><div>| |</div><div>| ________ |</div><div>| | filtered | |</div><div>| | area | |</div><div>| |--------------| |</div><div>| |</div><div>----------------------------------------------------------</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Rick</div><div><br></div><div><br></div><div><br></div></body></html>