imrotate - clockwise or counterclockwise ?
Ältere Kommentare anzeigen
I observed that imrotate rotates images clockwise instead of counterclockwise, as indicated in the doc.
2 Kommentare
Andreas Goser
am 25 Feb. 2011
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
am 25 Feb. 2011
I also find it rotates the image anticlockwise. (That's the local word for counterclockwise.)
Antworten (1)
Dan
am 25 Feb. 2011
1 Stimme
1 Kommentar
David Young
am 25 Feb. 2011
Yes, but it's not your mistake: the help for imrotate should state which coordinate system it is assuming.
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!