rotate image around arbitrary point
Updated 3 Jun 2016
the forum question:
asks for function other than imrotate to rotate image around any point.
The experts already commented to use padarray, but depending on where the arbitrary point is located
padarray requires different options.
imrotate rotates image around centre point, and inflates image depending on the rotation angle.
The resulting image is zoomed back 67% byt the figure display. May want to zoom back before
Rotation point introduced with mouse click on image.
Furthest pixel rotation radius calculated.
Open to suggestions, feedback to improve initial version.
John BG (2023). rotate image around arbitrary point (https://www.mathworks.com/matlabcentral/fileexchange/57492-rotate-image-around-arbitrary-point), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
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.