[Insight-users] calculate the maximums of an image

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon May 12 16:49:18 EDT 2008


Le 12 mai 08 à 22:44, Gaëtan Lehmann a écrit :

>
> Hi,
>
> A perhaps easier approach is to use the  
> LabelImageToShapeLabelMapFilter class, with the maximum value in the  
> image.
> You can then get the centroid of the label object with the maximum  
> value in your image as label, without much work.

I forgot the link to the contribution: http://insight-journal.com/InsightJournalManager/view_publication.php?back=search.php%3Ftexte%3Dlabel&pubid=176

>
>
> HTH,
>
> Gaëtan
>
>
> Le 12 mai 08 à 21:39, Xabier Artaechevarria Artieda a écrit :
>
>> Hi Irene,
>>
>> You can use a C++ standard vector:
>>
>> std::vector<ImageType::IndexType> vector;
>>
>> You can store values in it (using push_back) and then iterate to  
>> compute the center of gravity.
>>
>> Hope that helps :)
>> Best regards,
>> Xabi
>>
>> -- 
>> Xabier Artaechevarria
>> Cancer Imaging Laboratory
>> Centre for Applied Medical Research
>> www.cima.es
>>
>>
>>
>> Irene Gonzálvez <irenegonzalvezg at gmail.com> ha escrito:
>>
>>> Thanks a lot for answer, it was really helful.
>>> I have another question, if inside the region I have a subregion  
>>> with equal
>>> values for all pixels and I would like to store these indexes in  
>>> an array
>>> (the idea is to calculate the pixel which has the maximum value  
>>> and is in
>>> the cente of that subregion ), is it possible to create an array  
>>> of indexes?
>>>
>>> Bets regards,Saludos!
>>> Irene
>>> P.S. Muchas gracias, saludos desde Madrid
>>>
>>>
>>> On Mon, May 12, 2008 at 9:50 AM, Xabier Artaechevarria Artieda <
>>> xabiarta at unav.es> wrote:
>>>
>>>> Hi Irene,
>>>>
>>>> You could use ExtractImageFilter to extract the 3D images and
>>>> MinimumMaximumImageCalculator to obtain the maximum. You can do  
>>>> that in a
>>>> loop, in which you change the extract region in the extraction  
>>>> filter.
>>>>
>>>> Hope that helps,
>>>> Xabi
>>>>
>>>> --
>>>> Xabier Artaechevarria
>>>> Cancer Imaging Laboratory
>>>> Centre for Applied Medical Research
>>>> www.cima.es
>>>>
>>>>
>>>>
>>>> Irene Gonzálvez García <irenegonzalvezg at gmail.com> ha escrito:
>>>>
>>>> Dear all,
>>>> >
>>>> > I would like to know if there is a method to calculate, in a 4D  
>>>> image,
>>>> > the maximum points in all the 3D slices.
>>>> >
>>>> > Best regards
>>>> > Irene
>>>> > _______________________________________________
>>>> > Insight-users mailing list
>>>> > Insight-users at itk.org
>>>> > http://www.itk.org/mailman/listinfo/insight-users
>>>> >
>>>>
>>>>
>>>>
>>>> ----------------------------------------------------------------
>>>> Este mensaje ha sido enviado desde https://webmail.unav.es
>>>>
>>>> _______________________________________________
>>>> Insight-users mailing list
>>>> Insight-users at itk.org
>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>
>>
>>
>>
>> ----------------------------------------------------------------
>> Este mensaje ha sido enviado desde https://webmail.unav.es
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
> -- 
> 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.mandriva.org
> http://www.itk.org  http://www.clavier-dvorak.org
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080512/7f309ecd/attachment-0001.pgp>


More information about the Insight-users mailing list