Search code examples
imagematlabimage-processingvideo-processingmatlab-cvst

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


Solution

  • If you want to find the in-plane rotation between the two images, here is an example that does just that.