imrotate - clockwise or counterclockwise ?
이전 댓글 표시
I observed that imrotate rotates images clockwise instead of counterclockwise, as indicated in the doc.
댓글 수: 2
Andreas Goser
2011년 2월 25일
I have difficulties to post this as an answer - so doing a "comment".
I modified the example from the doc to see the direction more obvious:
I = fitsread('solarspectra.fts');
I = mat2gray(I);
J = imrotate(I,45,'bilinear','crop');
figure, imshow(I)
figure, imshow(J)
Figure 2 is rotated counterclockwise for me.
David Young
2011년 2월 25일
I also find it rotates the image anticlockwise. (That's the local word for counterclockwise.)
답변 (1개)
Dan
2011년 2월 25일
1 개 추천
댓글 수: 1
David Young
2011년 2월 25일
Yes, but it's not your mistake: the help for imrotate should state which coordinate system it is assuming.
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!