[Insight-users] Apply a filter only in a selected region

Karthik Krishnan karthik.krishnan at kitware.com
Tue Oct 24 19:22:03 EDT 2006


Hi Vincent,

Yes. Some (not all) ITK filters can run only on a specific region of the
image.
You should change the requested region of the output to do so.

filter->GetOutput()->SetRequestedRegion(region);
filter->Update();

2. No the processing regions for ITK filters cannot be non-rectangular.

-karthik

On 10/24/06, Vincent Viroleau <viroleau at gmail.com> wrote:
>
> Hi,
>
> I would like to apply an ITK Filter only in a specific region of the
> input image.
>
> I tried to change the LargestPossibleRegion of the input before
> calling my filter.
> The result is good, but i don't want to loose the other part of the image.
>
> Is there a way to do it ?
> If yes, is it possible to define a region that is not a rectangle ?
>
> --
> Vincent Viroleau
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20061024/d40b0a27/attachment.htm


More information about the Insight-users mailing list