Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to calculate the angle between two images?
Replies: 41   Last Post: Dec 8, 2012 11:02 PM

 Messages: [ Previous | Next ]
 Dave Robinson Posts: 1,338 Registered: 1/25/05
Re: How to calculate the angle between two images?
Posted: Apr 5, 2009 6:42 AM

"khoo" <jim_khoo@hotmail.com> wrote in message <gra0s1\$7d0\$1@fred.mathworks.com>...
> "khoo" <jim_khoo@hotmail.com> wrote in message <gr96k1\$cgv\$1@fred.mathworks.com>...

> 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 1..so 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

Date Subject Author
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 khoo
4/4/09 khoo
4/4/09 Dave Robinson
4/4/09 khoo
4/4/09 khoo
4/5/09 khoo
4/5/09 Dave Robinson
4/5/09 khoo
4/5/09 khoo
4/5/09 Dave Robinson
4/5/09 khoo
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 khoo
4/6/09 khoo
4/7/09 khoo
4/7/09 khoo
4/7/09 Dave Robinson
12/8/12 Jeff
4/3/09 Skeptic
4/3/09 Dave Robinson
4/3/09 Roger Stafford
4/3/09 khoo
4/3/09 Roger Stafford
4/3/09 ImageAnalyst
4/3/09 khoo
4/4/09 khoo
4/6/09 Matt
4/6/09 khoo
4/6/09 Matt