[Insight-users] calculate the maximums of an image
Xabier Artaechevarria Artieda
xabiarta at unav.es
Mon May 12 15:39:07 EDT 2008
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
More information about the Insight-users
mailing list