[Insight-users] Methods of RelabelComponentImageFilter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Aug 20 13:26:26 EDT 2007


Hi Gopal,

For that problem also, you should look at the contribution I have  
posted last week on the insight journal.

   http://insight-journal.org/InsightJournalManager/view_reviews.php? 
back=index.php&pubid=176

It provides some classes for this kind of filtering.
For your particular problem, itk::LabelShapeOpeningImageFilter will  
do exactely what you need.

Gaëtan



Le 20 août 07 à 19:03, gkaremore at scai.fraunhofer.de a écrit :

> Dear All
>
> After processing an image through RelabelComponentImageFilter ,  
> there are
> 22 classes (Components in an image). I want those component whose  
> physical
> size is less than the threshold. In another words I want only smaller
> component in the image. I know RelabelComponentImageFilter filter  
> gives
> output in descending order of pixel count in lebels. But Is there any
> method in RelabelComponentImageFilter where we can select perticular
> component only on the size basis. I want all the larger component  
> whose
> size > threshold to be relabeled to background color ie (Black 1).  
> How to
> do this??
>
> In another words how to select perticular label and how to change its
> color (1-255) to the background.
>
> Any help would be appreciated.
>
> Sincerely
> Gopal Karemore
>
> Zimmer no: 332
> The Department of Bioinformatics
> The Fraunhofer Institute for Algorithm Developement  and Scientific  
> Computing
> St. Augustin, Bonn
> Germany 53754
>
>
> Email : gkaremore at scai.fraunhofer.de
>         gopal.karemore at gmail.com
>
> Contact: +49-2241-142537
>
> Internet : http://www.gopalrk.com
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

--
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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070820/c79fba84/PGP.pgp


More information about the Insight-users mailing list