[Insight-users] Still struggling with extracting information about objects resulting from a segmentation

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Mar 11 16:33:18 EST 2010


Le 11 mars 10 à 22:10, Neal R. Harvey a écrit :

> Gaëtan Lehmann wrote:
>>
>> Le 11 mars 10 à 17:54, Neal R. Harvey a écrit :
>>
>>> I would hope that the value returned from labelMap- 
>>> >GetNumberOfLabelObjects() would
>>> be the same as the maximum value of the watershed segmented image.
>>
>>
>> The watershed doesn't produce consecutive labels, so this won't be  
>> true.
>> The greatest label in the watershed output is likely to be a lot  
>> greater than the actual number of objects.
>   Yep, I had just remembered that. Doh! I am assuming that I can use  
> the RelabelComponentImageFilter to
>   make the labels consecutive, as this would make things a lot easier.

You can also use RelabelLabelMapFilter, to relabel the label objects  
instead of relabelling all the pixel in the labeled image.

>
>   Thanks a lot for the advice. I will try your other suggestion and  
> see if I can get that working.
>
>   Cheers
>
>   Harve

Gaëtan

-- 
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  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100311/fadf6791/attachment-0001.pgp>


More information about the Insight-users mailing list