[Insight-users] ConnectedComponentImageFilter

Kiên Kiêu kien.kieu at jouy.inra.fr
Fri Jun 15 07:57:47 EDT 2012


Yes. Note that BinaryImageToShapeLabelMapFilter is convenient in the  
case all regions are given the same label. In case separate regions  
have different labels, use LabelImageToShapeLabelMapFilter.

Le 15 juin 12 à 12:21, Miriam Pini a écrit :

> Hi Kien,
>
> thank you for your help! I'm trying to use tha class you suggested:  
> am I correct saying that the foreground value is the the colour that  
> can be chosen for the lable objects??
>
> Thank you very much,
>
> Miriam
>
> From: kien.kieu at jouy.inra.fr
> To: insight-users at itk.org
> Date: Fri, 15 Jun 2012 09:16:14 +0200
> Subject: Re: [Insight-users] ConnectedComponentImageFilter
>
> Hi,
>
> you may use BinaryImageToShapeLabelMapFilter. Eventually you will  
> have to adjust the ForegroundValue attribute. Then use either the  
> methods GetNumberOfPixels or GetPhysicalSize of ShapeLabelObject to  
> get the size you wish for each object (connected component).
>
> Le 14 juin 12 à 19:57, Miriam Pini a écrit :
>
> Hi guys,
>
> I have an image with separated regions of the same colour and I'd  
> like to get the dimension of each of them. Is the  
> ConnectedComponentImageFilter the best class to do that?
>
> Any suggestion is greatly appreciated,
>
> thank you all,
>
> Miriam
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> ---
> Kiên Kiêu                    tel  : + 33 (0)1 34 65 28 16
> Unité MIA, INRA              fax  : + 33 (0)1 34 65 22 17
> Domaine de Vilvert           email: Kien.Kieu at jouy.inra.fr
> F-78350 Jouy-en-Josas        url  : http://www.inra.fr/miaj/
>
>
>
>
>
> _____________________________________ Powered by www.kitware.com  
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htmlKitware 
>  offers ITK Training Courses, for more information visit: http://www.kitware.com/products/protraining.php 
>  Please keep messages on-topic and check the ITK FAQ at:http://www.itk.org/Wiki/ITK_FAQ 
>  Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-users

---
Kiên Kiêu                    tel  : + 33 (0)1 34 65 28 16
Unité MIA, INRA              fax  : + 33 (0)1 34 65 22 17
Domaine de Vilvert           email: Kien.Kieu at jouy.inra.fr
F-78350 Jouy-en-Josas        url  : http://www.inra.fr/miaj/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120615/2ecd15b8/attachment.htm>


More information about the Insight-users mailing list