[vtkusers] vtkImageStencil, vtkImageMask?

Richard Frank rickfrank at me.com
Wed Jul 10 11:00:26 EDT 2013


Hi

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.

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.


Image
_________________________________
|                                                         |
|                  ________                           |
|                 |  filtered   |                           |
|                 |   area     |                           |
|                 |--------------|                           |
|                                                         |
----------------------------------------------------------



I didn't receive a response, and have looked at vtkImageMask and vtkImageStencil.

vtkImageMask doesn't quite do what I want sets the pixels outside the mask to a constant color.

vtkImageStencil - is this capable of doing what I want to do? I'm not quite sure how it works.....


Image
_________________________________
|                                                         |
|                  ________                           |
|                 |  filtered   |                           |
|                 |   area     |                           |
|                 |--------------|                           |
|                                                         |
----------------------------------------------------------


Thanks

Rick



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130710/9cf29207/attachment.htm>


More information about the vtkusers mailing list