rotatedObject: Rotate any 2D object by handle, vertex list, or bounding box

版本 1.1.0.1 (6.4 KB) 作者: Brett Shoelson
Easily rotate any 2D object: rectangles, ellipses, imrois, xy-coordinates
471.0 次下载
更新时间 2018/1/30

查看许可证

Rotate any 2D object (specified by its vertices or by handle(s) to an imroi object) by angle theta (in degrees), about any center of rotation.
Create rotated rectangle or ellipse specified by its (unrotated) bounding box.
Specify center of rotation by point, or by corner or centroid of bounding box.
Includes shortcut functions rotateRectangle and rotateEllipse for convenience.

引用格式

Brett Shoelson (2024). rotatedObject: Rotate any 2D object by handle, vertex list, or bounding box (https://www.mathworks.com/matlabcentral/fileexchange/49529-rotatedobject-rotate-any-2d-object-by-handle-vertex-list-or-bounding-box), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
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.1.0.1

Providing missing function vertToPos(); necessary for one of the examples. Thanks to Gary for pointing out the omission.
Updated license

1.1.0.0

Extends, replaces the original rotatedRectangle file.

1.0.0.0