[Insight-users] binary erosion does not take effect...

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Feb 16 08:34:00 EST 2009


Le 16 févr. 09 à 14:27, a.bongers at mediri.com a écrit :

> // my outMaskImage is of type unsinged short and contains //a "0 an  
> 1 mask"


Hi,

If your image contains only 0 and 1, then you should change the  
foreground value of the filter, which defaults to the maximum possible  
value of the pixel type.

   binErode->SetForegroundValue(1);

Regards,

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090216/83b1dcf9/attachment-0001.pgp>


More information about the Insight-users mailing list