How to rotate the image without using the imrotate option...

14 次查看(过去 30 天)
Hello all,
I don't have a Image processing toolbox to use imrotate function, So please let me know any other method or procedure to do this.
I need the pass the angle of rotation from 0 to 360 degree then the image should rotate with corresponding angle.
Best Regards,
Raghavendra

回答(1 个)

DGM
DGM 2023-1-8
If you don't have IPT, MIMT imrotateFB() will work, and the syntax is similar. It will run faster with IPT available, but will still run without it. It should also still run in R2012x. Check the documentation, but most of the options are supported in fallback mode.
inpict = imread('peppers.png');
outpict = imrotateFB(inpict,30,'bilinear','crop');
imshow(outpict)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by