Wrong ROI Ellipse rotation angle documentation?

1 回表示 (過去 30 日間)
Effesian
Effesian 2021 年 11 月 30 日
コメント済み: Effesian 2021 年 11 月 30 日
Hello,
I am using the roi = drawellipse command from the image processing toolbox (https://www.mathworks.com/help/images/ref/drawellipse.html) to label some elliptical shapes in image.
This returns an Ellipse (roi) object. One property is the "Rotation angle" which according to the documentation (retrieved 30.11.2021) is:
  • Rotation angle of the ROI, specified as a number. The angle is measured in degrees in a clockwise direction around the center of the ROI.
However, if I rotate by hand the ellipse in a COUNTER clockwise direction, the angle increases (thus the angle is measured in degrees in a counter clockwise direction). Is this a typo in the documentation or am I missing something?
Thanks!
I am using:
MATLAB Version: 9.9.0.1467703 (R2020b)

採用された回答

Matt J
Matt J 2021 年 11 月 30 日
編集済み: Matt J 2021 年 11 月 30 日
In the coordinate conventions of the Image Processing Toolbox, the Y-axis points downward and the Z-axis is pointing into the screen. Therefore, what you would normally consider a counter-clockwise rotation is, in the toolbox's coordinate system, a clockwise rotation about the Z-axis.
  1 件のコメント
Effesian
Effesian 2021 年 11 月 30 日
Got it, thanks!

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by