i hane this error
Error using .*
Integers can only be combined with integers of the same class, or scalar doubles.
Error in rotate_image (line 112)
out_image_m(out_points_span) = ...
Error in im_reg_MI (line 61)
J = rotate_image(angle(k),image2); %rotated cropped IMAGE2
Error in test_registration (line 16)
[h,im_matched, theta,II,J]=im_reg_MI(I, I2, 15, 5);
i use this code to use urs
[x y] = uigetfile('*.jpg','Select the image');
I=imread([y x]);
I=rgb2gray(I);
figure,imshow(I),title('1 image ');
[x y] = uigetfile('*.jpg','Select the image');
I2=imread([y x]);
I2=rgb2gray(I2);
figure,imshow(I2),title('2 image ');
% cpselect(I, I2)
[h,im_matched, theta,II,J]=im_reg_MI(I, I2, 15, 5);
Comment only