finding rotation of angle

i have 2 images,one is say" dock.jpg"image and the second is same image ,but rotated 45 or some other angle.is it possible to say that the second image is how much rotated in angle from first,
please help
the image is grayscale
its size is 128x128

Answers (2)

Elad
Elad on 3 Feb 2012

0 votes

you can use imrotate() running over angles and subtract the result with the original image until you get a zero matrix.
showdemo ipexaerial
Might help get you started.

Asked:

on 3 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!