[Insight-users] Apply filter only on a specific region ?

Luis Ibanez luis.ibanez at kitware.com
Sun Jan 24 10:10:44 EST 2010


Hi Steve,

It depends....

What exactly do you want at the output ?

A) The full input input with the subregion modified ?

or

B) only the modified subregion ?

---

If you want (A) you will have to use a pipeline
such as:

RegionOfInterestImageFilter
MedianImageFilter
PasteImageFilter

If you want (B) you could use simply


RegionOfInterestImageFilter
MedianImageFilter

or even use the SetRequrestedRegion()
of the Median filter directly.  Although
this last option is not a recommended
practice, unless you are very familiar
with the inner-workings of the ITK pipeline.


--

On a side note:

Why do you want to do such thing ?    :-)



More information about the Insight-users mailing list