From: Ahmad Alkandri on
dear all

i'm trying to measure the max peak value of the correlation output of two images, would someone help please ?
From: ImageAnalyst on
On May 3, 5:23 am, "Ahmad Alkandri" <a_alkan...(a)yahoo.com> wrote:
> dear all
>
> i'm trying to measure the max peak value of the correlation output of two images, would someone help  please ?  

------------------------------------------------------------------------------
The max() function immediately springs to mind.

autoCorrImage = xcorr2(image1, image2);

maxPeakValue = max(max(autoCorrImage));

or

maxPeakValue = max(autoCorrImage(:));

From: Ahmad Alkandri on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <9f0d5401-21b9-4d7b-bec8-5b551eeb41a4(a)i10g2000yqh.googlegroups.com>...
> On May 3, 5:23 am, "Ahmad Alkandri" <a_alkan...(a)yahoo.com> wrote:
> > dear all
> >
> > i'm trying to measure the max peak value of the correlation output of two images, would someone help  please ?  
>
> ------------------------------------------------------------------------------
> The max() function immediately springs to mind.
>
> autoCorrImage = xcorr2(image1, image2);
>
> maxPeakValue = max(max(autoCorrImage));
>
> or
>
> maxPeakValue = max(autoCorrImage(:));


this is excellent, thank you so much ..... what about if i have two or three (maybe more ) peaks in the output .... would it possible to measure these also ? .... sorry so new to this ...

best regards
From: ImageAnalyst on
If they're the same value, the max function can do it. If they have
different values, then you need something like findpeaks() in the
signal processing toolbox or find some code somewhere on the internet,
like here:
http://www.mathworks.com/matlabcentral/fileexchange/25500-peakfinder
From: Ahmad Alkandri on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <4f969f07-9e68-4146-8d99-bf03d2fa7d25(a)o14g2000yqb.googlegroups.com>...
> If they're the same value, the max function can do it. If they have
> different values, then you need something like findpeaks() in the
> signal processing toolbox or find some code somewhere on the internet,
> like here:
> http://www.mathworks.com/matlabcentral/fileexchange/25500-peakfinder

thank you for you help ..... it was great