rotate image around arbitrary point

版本 1.0.0.0 (284.7 KB) 作者: John BG
answer to forum question asking how to rotate image around any point
119.0 次下载
更新时间 2016/6/3

查看许可证

the forum question:
http://uk.mathworks.com/matlabcentral/answers/287017-imrotate-won-t-work-in-this-scenario-any-other-suggestions
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
possible cropping.

Rotation point introduced with mouse click on image.

Furthest pixel rotation radius calculated.

Open to suggestions, feedback to improve initial version.

引用格式

John BG (2025). rotate image around arbitrary point (https://www.mathworks.com/matlabcentral/fileexchange/57492-rotate-image-around-arbitrary-point), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

-