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

5 Ansichten (letzte 30 Tage)
Raghavendra
Raghavendra am 14 Sep. 2012
Beantwortet: DGM am 8 Jan. 2023
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

Antworten (1)

DGM
DGM am 8 Jan. 2023
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)

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by