Image(or matrix) rotation and scaling function

Version 1.0.0.0 (1,95 KB) von Disi A
This function takes an image, scales it and rotates it by theta (radian, rigid motion)
618 Downloads
Aktualisiert 14. Okt 2013

Lizenz anzeigen

This function takes an image or matrix and rotate it by theta (radian, rigid motion)
The image could also be enlarged or shrinked by an optional scaling factor

img: input image (or or a 2D Matrix)
dtheta: the amount of rotation in radian
scale: a scalar number that scales the image (default=1)
interpMethod:
'nearest' - nearest neighbor interpolation
'linear' - bilinear interpolation (defalt)
'spline' - spline interpolation
'cubic' - bicubic interpolation
padding: background filling color (0~255, black~white). Default: black

Example:
im = imread('cameraman.tif')
imshow(imTransform(im,pi/6))

Zitieren als

Disi A (2025). Image(or matrix) rotation and scaling function (https://de.mathworks.com/matlabcentral/fileexchange/43880-image-or-matrix-rotation-and-scaling-function), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2013a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0