hi i find the angle between 2 similar(but not the same) pictures ?

i used
hVideoSrc = vision.VideoFileReader(filename, 'ImageColorSpace', 'Intensity');
imgA = step(hVideoSrc); % Read first frame into imgA
imgB = step(hVideoSrc); % Read second frame into imgB
figure; imshowpair(imgA, imgB, 'montage');
title(['Frame A', repmat(' ',[1 70]), 'Frame B']);
figure; imshowpair(imgA,imgB,'ColorChannels','red-cyan');
title('Color composite (frame A = red, frame B = cyan)');
from http://www.mathworks.com/help/vision/examples/video-stabilization-using-point-feature-matching.html but it not help anybody have a idia
Just wanted to flag that an algorithm that is very similar to Patrick's suggestion exists in the Image Processing Toolbox as of R2014a. It is named imregcorr and uses phase-correlation in the log-polar domain. This might also work very well for this problem, I haven't tried it yet.
http://www.mathworks.com/help/images/ref/imregcorr.html
http://adessowiki.fee.unicamp.br/media/Attachments/courseIA369O1S2011/Ex13/phasecorrelation5.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With