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

Neal R. Harvey harve at lanl.gov
Thu Mar 11 17:10:08 EST 2010


Gaëtan Lehmann wrote:
>
> 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.
    Yes, I had noticed that. For perimeter, it's not too much of an 
increase, but for Feret diameter, it is
    an enormous difference. However, we actually need the Feret 
diameter, so we will have to just deal
    with it!

    Thanks again for your assistance. It is very much appreciated.

    Cheers

    Harve


More information about the Insight-users mailing list