I need to create a code in MATLAB that using imrotate function to rotate an image multiple times in increments of 60 degrees from 0 degrees to 300.

1 次查看(过去 30 天)
This is what I have so far- my image is RB1 that I need to rotate
for i=0:300:60
C=imrotate(RB1,180,'crop');
imshow(C);
end
  2 个评论
Matt J
Matt J 2021-9-2
编辑:Matt J 2021-9-2
Valerie Yunis' original question
I need to create a code in MATLAB that using imrotate function to rotate an image multiple times in increments of 60 degrees from 0 degrees to 300.
for i=0:300:60
C=imrotate(RB1,i,'crop');
imshow(C);
end

请先登录,再进行评论。

回答(2 个)

Matt J
Matt J 2021-9-2
编辑:Matt J 2021-9-2
for i=0:60:300
C=imrotate(RB1,i,'crop');
imshow(C);
shg; pause(1);
end

Image Analyst
Image Analyst 2021-9-2
Try adjusting your values for i and using drawnow;
for i=0: 60 : 300
C=imrotate(RB1,i,'crop');
imshow(C);
drawnow; % Force immediate screen refresh
% pause(0.5); % Optional pause
end

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by