フィルターのクリア

How to find rotation matrix from 4 rectangle points

13 ビュー (過去 30 日間)
SOONMYUN JANG
SOONMYUN JANG 2020 年 5 月 30 日
コメント済み: Image Analyst 2020 年 6 月 3 日
Hi,
I have 4 3d points(x, y, z). Using these points how can I calculate rotation angle? Consequently, I want to have a 4x4 transformation matrix including rotation and translation information.
4 points are in a plane and they are corners of rectangle and I set the top-left point as the origin of the rectangle coordinate. Look at the bellow pictures.
Here I only have four 3D points(Xw,Tw,Zw) based on the world coordinate. According to the 4 points, I can calculate 4 points based on the rectangle coordinate. For instance, value [Xr] in P2 is the distance between P1 and P2. And [-Yr] in P3 is the distance between P1 and P3.
Then how could I get rotation angle of the rectangle based on the world coordinate using those information?
Additional information (3d points in the world coordinate):
P1(-401.428, 485.929, 772.921)
P2(-21.4433, 475.611, 772.511)
P3(-400.982, 483.56, 403.703)
P4(-21.589, 473.028, 403.242)

採用された回答

Image Analyst
Image Analyst 2020 年 5 月 30 日
Wouldn't the rotation matrix be
rotMatrix = pDistorted \ pStraight
  4 件のコメント
SOONMYUN JANG
SOONMYUN JANG 2020 年 6 月 3 日
I want to get a rotation information such as 3x3 rotation matrix.
Image Analyst
Image Analyst 2020 年 6 月 3 日
Again: "what do you want your transformed data coordinates to be?" You gave only input coordinates, not output coordinates.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCartesian Coordinate System Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by