Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find the angle between two very similar pictures in matlab

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

the first picture

the second 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

like image 633
Vladi Avatar asked Dec 13 '25 23:12

Vladi


1 Answers

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

like image 90
Alex Taylor Avatar answered Dec 16 '25 21:12

Alex Taylor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!