[Insight-developers] AddConstantToImageFilter vs SubtractConstantFromImageFilter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue May 17 08:26:56 EDT 2011


Le 13 mai 11 à 01:12, David Doria a écrit :

> Is there a reason that these are two separate filters? Isn't
> SubtractConstantFromImageFilter exactly the same as
> AddConstantToImageFilter with a negative constant?


If the constant is not signed, it can be interesting.
Or maybe with some custom pixel types, operator-() can have a  
different behavior.

Anyway, those features have been merged in AddImageFilter and  
SubtractImageFilter, which are both needed to work with two images, so  
the question is less relevant now :-)

Gaëtan

-- 
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  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110517/feae35a6/attachment.pgp>


More information about the Insight-developers mailing list