problem with correlation of two images

1 vue (au cours des 30 derniers jours)
Farjana Yeasmin
Farjana Yeasmin le 30 Nov 2014
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

Réponses (1)

Image Analyst
Image Analyst le 30 Nov 2014
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