[Insight-users] Summing regions

robert tamburo robert.tamburo at gmail.com
Fri Jun 10 13:53:11 EDT 2011


I'm unaware of a single class to accomplish that task. You could use
Region::Crop to calculate the common region, create a binary mask image from
the region, use MaskImageFilter to apply the mask to each images and finally
use AddImageFilter to add the pixel values together.

... or you can write a new filter :)


On Fri, Jun 10, 2011 at 9:34 AM, Luca Penasa <luca.penasa at gmail.com> wrote:

> Is there any method to sum two regions? So to get a region that contains
> both?? I see there is a Crop method, but what about a Sum?
>
>
>
> --
> ---------------------------
> Luca Penasa
> Student at Geosciences Dpt.
> University of Padua (IT)
> luca.penasa at email.it
> ---------------------------
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110610/b2da71cf/attachment.htm>


More information about the Insight-users mailing list