calculate rotation of an object using three markers connected to an object
6 ビュー (過去 30 日間)
古いコメントを表示
Hi
I am trying to calculate the rotation (orientation) of an object using three markers placed on the sides of the object. I have attached the sketch of the given object with markers on it.
Can anyone please help me on this?
Thank you!
PA
2 件のコメント
Adam Danz
2019 年 10 月 4 日
Not enough info.
Are you rotating the image or are you rotating a set of coordinates that are similar to those shown in the image?
What is the axis of rotation?
What is the angle of rotation?
採用された回答
Matt J
2019 年 10 月 4 日
You can use this FEX file to calculate the rotation of a set of points,
3 件のコメント
Adam Danz
2019 年 10 月 5 日
編集済み: Adam Danz
2019 年 10 月 5 日
@pacharya , When you use a new function for the first time, take a few minutes to read about the function by using the help() or doc() commands. It is important to 1) understand what the function generally does, 2) understand what inputs are required and what form they should take, and 3) understand what the function outputs.
Matt has done an excellent job at documenting this function and the input description is clear:
% absor(A,B, ...)
% A: a 2xN or 3xN matrix whos columns are the coordinates of N source points.
% B: a 2xN or 3xN matrix whos columns are the coordinates of N target points.
If the dimensions of 'A' do not fit those requirements, you get the error message you shared.
If your marker data are 3D you need to organize them into a 3xN matrix.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で 3-D Scene Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!