[Insight-users] shape label

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Aug 21 09:39:17 EDT 2009


Le 21 août 09 à 15:04, camille orny a écrit :

> Hello,
>
> I am trying to to display the perimeters of the labels of a label  
> image.
>
> I have used the LabelImageToShapeLabelMapFilter and used the  
> GetPerimeter() method of the ShapeLabelObject class. I have tried  
> declaring perimeter as double and unsigned long:
>
> The program returns zero for the perimeter while it work for other  
> attributes such as RegionElongation.
>
> Could anyone help me ?


Hi,

You have to use SetComputePerimeter(true) on the ShapeLabelMapFilter  
object. This is because this attribute takes more time to compute that  
the others.

Please let us know if you have other problems,

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/pipermail/insight-users/attachments/20090821/6bd7524f/attachment.pgp>


More information about the Insight-users mailing list