[Insight-users] About using itk::ConnectedComponentImageFilter

Dan Mueller dan.muel at gmail.com
Thu Aug 16 07:15:01 EDT 2012


Hi Rong,

You can use itk::ConnectedComponentsImageFilter::GetObjectCount().
http://www.itk.org/Doxygen/html/classitk_1_1ConnectedComponentImageFilter.html#a5a7b456e4bc76ea9e8a763d35256e9ab

HTH

Cheers, Dan

On 16 August 2012 20:27, Rong Xu <xurong1981 at gmail.com> wrote:
> Hi, everybody:
>
> I am using  itk::ConnectedComponentImageFilter to label the regions in an
> image, and want to get the total number of labels in
> itk::ConnectedComponentImageFilter. But I found there is a private member of
> m_NumberOfLabels, that is I want to know. Does anyone know how to get this
> value ?
>
> Thank you !
>
> --
>
> ---------------------
> Best Regards!
>
> ===============================================
> Rong Xu,  Ph.D Student
> Ohya Lab
> Graduate School of Global Information and Telecommunication
> Studies (GITS), Waseda University
> 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (〒169-8050)
>
> Tel:          +81-80-4208-1207
> E-mail:     xurong1981 at gmail.com
>                xurong at fuji.waseda.jp
> ===============================================
>
>
> _____________________________________
> 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
>


More information about the Insight-users mailing list