[Insight-users] Python / ITK : Addition of two images
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Apr 11 10:23:24 EDT 2006
On Tue, 11 Apr 2006 11:58:06 +0200, Vincent Page <vpage at univ-ag.fr> wrote:
> Hi,
>
> Looks like a silly problem :
> I want to add two images.
> Each one is the output of a filter.
>
>
> I m pretty used to C programming, and
> I suppose that a loop would make this right
> (including the use of an iterator,
> as it seems to be the usual way of doing this in itk)
>
> However, I would like to know if there is a filter
> to do this. If not, I would be glad to see some
> clean code in order to avoid the kind of
> crappy manipulations I am keen on writing !
>
there is a filter to do that:
add = itk.AddImageFilter.IUS2IUS2IUS2.New(filter1, filter2)
Is it clean enough ?
:-)
Gaetan
> best regards,
> Vincent.
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-users
mailing list