[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 17:07:52 EST 2010


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

> Gaëtan Lehmann wrote:
>>>  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?
>>
>   It's not so much that I get an error message, but if I try to  
> print out the FeretDiameter or Perimeter, it shows it as 0.
>   This is because, by default it doesn't do this, right, due to the  
> extra computational burden?
>   So, I need to turn this on, right?
>   Is this done something like this?:
>
>     converter->SetComputePerimeter( true );
>     converter->SetComputeFeretDiameter( true );


Yes, that's it.
Be ready to huge computation times if you have big objects, especially  
for Feret diameter.

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/becb8348/attachment.pgp>


More information about the Insight-users mailing list