Image Rotate, Scale, and Translate
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Im_rst/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |