Image rotation and transformation
11 次查看(过去 30 天)
显示 更早的评论
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
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)
回答(1 个)
Image Analyst
2020-5-27
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!