Image rotation and transformation

Hello experts,
as a beginner in Matlab, i have some problems with the rotation of image from the center point.
Problem defination:
I took the image at 30° from the left side of the picture. Now i want to rotate the image from the center point for -30° in the right direction to achive the proper (flat) image for the analysis.
How can i solve this problem?
Is there any tutorial or scripts or manual for these types of problems?
Thank you in advance.
Best regards
Vivek

댓글 수: 2

John Marriott
John Marriott 2020년 5월 27일
Hi Vivek,
If I have understood correctely and you want to rotate 30 degress counterclockwise you can use the imrotate function e.g newimage = imrotate(oldimage, 30)
Vivek Vora
Vivek Vora 2020년 5월 27일
Hi John,
thank you for your quick answer.
Actually, i want to tilt my image 30° up from left side, that means vertical rotation. Since my image is 2D, and i want to rotate it in a 3D space, i think my transformation is not a rotation but it should be projection.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2020년 5월 27일

0 개 추천

You can apply your own custom rotation matrix by using https://en.wikipedia.org/wiki/Rotation_matrix
Or call imtranslate() to shift the rotation point to the center of the image, then call imrotate(), then imtranslate() again to shift it back to where it was.

카테고리

도움말 센터File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

질문:

2020년 5월 27일

답변:

2020년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by