image thumbnail

Matrix and Image Rotation

version 1.0.3 (3.61 KB) by Evan Czako
Allows rotation of matrix or greyscale image. Option to resize or maintain original dimensions of image.

70 Downloads

Updated 22 Nov 2019

From GitHub

View license on GitHub

Simple rotation of matrices or greyscale images.

rotate_image_regrid rotates the image and resizes its dimensions as necessary to incorporate all of the original image into the rotated output.

rotate_image_no_regrid rotates the image but maintains its original dimensions, implying that some data may be cropped out. This function also contains code to ensure that the image remains properly centered despite discrepancies between the parities of the rotated image's dimensions and the input image's dimensions. Particularly useful for circular apertures.

Please see function descriptions for further details.

Cite As

Evan Czako (2021). Matrix and Image Rotation (https://github.com/EvanCzako/matrix-rotation), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.