|
Imrotate seems to be translating my image instead of rotating it. Here is the relavent portion of my code:
for r = 1:Full_Size
theta = r; %theta in degrees
imR = imrotate(imcand, theta); %Uses degrees {'nearest'}
imC = imcrop(imR, rect);
if (r == 1 || r == center || r == Full_Size)
figure('Name', strcat('imcandTransformed r:', num2str(theta))); imshow(imC);
end
end
I am trying to incrementally rotate the image to compare to the original, but the figures that are being displayed have been translated and not rotated. Note: I am using a selected rectangular portion of my original image. I have tried using "Rotate an image about a point"
by Jan Motl but have the same problem.
Anyone with insight here?
|