[Insight-users] itk::ConnectedComponentImageFilter ?

Lagaffe lagaffe74130 at yahoo.fr
Wed Jan 12 07:37:34 EST 2005


Hello,
I don't understand why when I use the
ConnectedComponentImageFilter on the input image below
there is 4 labels instead of 3 ?
any idea 

thanks,
Lagaffe

The PixelType for the inputImage is  unsigned short

typedef itk::ConnectedComponentImageFilter <
ImageType, ImageType >
ConnectedComponentImageFilterType;
ConnectedComponentImageFilterType::Pointer labelFilter
= ConnectedComponentImageFilterType::New ();
   labelFilter->SetInput(inputImage);
   labelFilter->Update();

-  Input Image - -
0 0 0 0 0 1 1
0 0 0 0 0 0 1
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 1 1 1 0 0 0
0 0 1 0 0 0 0
0 0 0 0 1 1 1
0 0 0 0 0 1 1

- Label Image - -
0 0 0 0 0 1 1
0 0 0 0 0 0 1
0 0 0 0 0 0 0
0 0 2 0 0 0 0
0 2 2 2 0 0 0
0 0 2 0 0 0 0
0 0 0 0 4 4 4
0 0 0 0 0 4 4



	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/


More information about the Insight-users mailing list