[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:58:28 EST 2010
Le 11 mars 10 à 22:35, Neal R. Harvey a écrit :
> Gaëtan Lehmann wrote:
>>
>> 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.
> OK. Thanks again. I will try that. Also, how does one turn on the
> computation of the perimeter, Feret diameter, etc.?
Your code looks correct to me.
Can you give the exact error message you get?
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/75dc163b/attachment.pgp>
More information about the Insight-users
mailing list