Image Rotate, Scale, and Translate

Rotates, scales, and translates an image passed to it.
2.6K Downloads
Updated 19 Apr 2010

View License

The 'im_rst.m' function rotates, scales, and translates an image according to the scale, rotation, and translation parameters passed to it.

'function rst = im_rst(I1, scale, angle, x_shift, y_shift)

I1 -> input image
scale -> scale factor
angle -> rotation angle
x_shift -> x translation
y_shift -> y translation

The function first scales the image, then rotates it, then translates (shifts) it. If the resulting image is larger than the input image, the resulting image is cropped using 'imcrop()', making the output image the same size as the input image.

Cite As

sethb Benton (2024). Image Rotate, Scale, and Translate (https://www.mathworks.com/matlabcentral/fileexchange/27300-image-rotate-scale-and-translate), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Geometric Transformation and Image Registration in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0