[Insight-users] removing label objects based on several statistics

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jan 12 09:02:39 EST 2011


Le 12 janv. 11 à 06:41, Conrad Bielski a écrit :

> Thanks Gaetan,
> That I can do, but once I create different  
> StatisticsOpeningLabelMapFilter for instance one for Mean and one  
> for Minimum, how do I specify that I want to specify Mean or Minimum?

   sopening->SetAttribute("Mean");
   sopening2->SetAttribute("Minimum");

Should be ok :-)

Gaëtan

> After that I just need to specify lambda and whether to choose  
> values above or below (that I think I can do).
>
> Have a great day,
> Conrad :)
>
> --- On Wed, 1/12/11, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>  
> wrote:
>
>> From: Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
>> Subject: Re: [Insight-users] removing label objects based on  
>> several statistics
>> To: "Conrad Bielski" <conrad_bielski at yahoo.com>
>> Cc: insight-users at itk.org
>> Date: Wednesday, January 12, 2011, 4:55 AM
>>
>> Le 11 janv. 11 à 09:13, Conrad Bielski a écrit :
>>
>>> Happy New Year Insight Users! All the best in 2011!
>>>
>>> I would like to remove statistics labels
>> (StatisticsLabelObject) based on testing of a few attributes
>> computed for each object. I have not been able to find an
>> example for this and I'm having trouble figuring out how to
>> access the attributes themselves when applying for example
>> StatisticsOpeningLabelMapFilter on multiple attributes.
>>>
>>
>> Hi Conrad,
>>
>> You have to create one StatisticsOpeningLabelMapFilter for
>> each selection you want to make.
>> Each selection use a single attribute and keep or reject
>> the object by comparing the attribute value to a value you
>> have chosen.
>>
>> 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
>>
>>
>
>
>

-- 
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/20110112/23093e54/attachment.pgp>


More information about the Insight-users mailing list