From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to calculate the angle between two images?
Date: Sun, 5 Apr 2009 10:42:02 +0000 (UTC)
Organization: STFC Rutherford Appleton Laboratory
Lines: 22
Message-ID: <gra1tq$a1t$>
References: <gr4ten$oks$> <gr4u55$add$> <gr4v19$60a$> <gr82h2$d9h$> <gr86ie$m8l$> <gr96k1$cgv$> <gra0s1$7d0$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1238928122 10301 (5 Apr 2009 10:42:02 GMT)
NNTP-Posting-Date: Sun, 5 Apr 2009 10:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 968489
Xref: comp.soft-sys.matlab:530423

"khoo" <> wrote in message <gra0s1$7d0$>...
> "khoo" <> wrote in message <gr96k1$cgv$>...

> im8=real(ifft(im66.*im77))
> max_value=max(max(im8));
> [max_angle1,]=find(im8==max_value)
> hist(im8)
> the max_angle i find is 1 every time..but when i check im8 value, got other value max  than how i need to do the find the peak value?

The correlation you should get from doing the Re(IFFT ....) is a one dimensional graph, whereas the max(max... you are applying is for a 2 dimensional matrix. 

Try to plot what you have called im8 and see if you end up with a graph showing a peak.

When I try to access your image I get a message indicating it has been deleted or removed.

Sorry about your dead line, but it is Sunday here, and it is only just luck I caught this mail, as I have family responsibilities to deal with on a weekend.

Good Luck & Regards

Dave Robinson