Hi Vincent,<br><br>Yes. Some (not all) ITK filters can run only on a specific region of the image.<br>You should change the requested region of the output to do so.<br><br>filter->GetOutput()->SetRequestedRegion(region);
<br>filter->Update();<br><br>2. No the processing regions for ITK filters cannot be non-rectangular.<br><br>-karthik<br><br><div><span class="gmail_quote">On 10/24/06, <b class="gmail_sendername">Vincent Viroleau</b> <
<a href="mailto:viroleau@gmail.com">viroleau@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I would like to apply an ITK Filter only in a specific region of the
<br>input image.<br><br>I tried to change the LargestPossibleRegion of the input before<br>calling my filter.<br>The result is good, but i don't want to loose the other part of the image.<br><br>Is there a way to do it ?<br>
If yes, is it possible to define a region that is not a rectangle ?<br><br>--<br>Vincent Viroleau<br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">
Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br>