problem with correlation of two images

1 次查看(过去 30 天)
my code is :
{function [ cofficient ] = Untitled( image )
I = imread('D:\\Thesis Code\\Source Code\\StegoImage.png');
J=imread('D:\\Thesis Code\\Source Code\\RotatedImage.png');
corr2(I,J)
end }
I got the problem like..
Error using corr2>ParseInputs (line 40)
A and B must be the same size.
Error in corr2 (line 22)
[a,b] = ParseInputs(varargin{:});
Error in Untitled (line 7)
corr2(I,J)
how can i solve this problem ?? plz help

回答(1 个)

Image Analyst
Image Analyst 2014-11-30
The correlation will be bad if one of the images is a rotated version of the other, so don't even bother. If you want to detect if one is a scaled, translated, and rotated version of the other, try Hu's moments like in this video

Community Treasure Hunt

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

Start Hunting!

Translated by