[Insight-users] ConnectedComponentImageFilter

Kiên Kiêu kien.kieu at jouy.inra.fr
Fri Jun 15 03:16:14 EDT 2012


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/




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


More information about the Insight-users mailing list