필터 지우기
필터 지우기

rotation matrice

조회 수: 2 (최근 30일)
Negar
Negar 2011년 10월 10일
Hi , I have a colormap image of a blood vessel which is tilted by 10 degrees, I want to rotate it and make it horizontal.
I tried to do it by 'imrotate', but it didn't work. I am wondering if there is another way to do that. How can I for example define the rotation matrice to multiply by my image matrice? (The image matrice is not square, it is 1559*119 )

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2011년 10월 10일
What does it mean "it didn't work"? Have you got an errors?
Look at example:
I = imread('coins.png');
figure, imshow(I)
J = imrotate(I,-10,'bilinear','crop');
figure, imshow(J)
K = imrotate(J,10,'bilinear','crop');
figure, imshow(K)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by