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

7 ビュー (過去 30 日間)
Raghavendra
Raghavendra 2012 年 9 月 14 日
回答済み: DGM 2023 年 1 月 8 日
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 Center および File ExchangeGeometric 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