[Insight-users] LabelImageToShapeLabelMapFilter
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Mon Jun 16 03:24:10 EDT 2008
Le 16 juin 08 à 09:07, Irene Gonzálvez García a écrit :
> Dear all,
>
> I would like to know if there is any example about how to use the
> LabelImageToShapeLabelMapFilter class. My idea is to label a region
> which value is maximum and then calculate the centroid of that region.
> b
Hi Irene,
A simple example with the same filter for a binary image is available
at http://voxel.jouy.inra.fr/darcs/contrib-itk/binaryAttributeMorphology/attribute_values.cxx
, or in the source code on the insight journal.
Simply replace BinaryImageToShapeLabelMapFilter by
LabelImageToShapeLabelMapFilter if your input image is a label image.
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: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080616/49d068db/attachment.pgp>
More information about the Insight-users
mailing list