find pose and angel of marker

2 ビュー (過去 30 日間)
moh ab
moh ab 2020 年 3 月 21 日
コメント済み: darova 2020 年 3 月 23 日
hi
in my project i have to set two markers to the robot and capture from 2 video real time
and my goal is find pose and angel of markers online and use them for simulink
can help me?
  3 件のコメント
moh ab
moh ab 2020 年 3 月 23 日
i import one image of project.
the black points in image are marker that i want find distance angel between them
moh ab
moh ab 2020 年 3 月 23 日
please help me thanks

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

採用された回答

darova
darova 2020 年 3 月 23 日
Here is a start to find markers
I0 = imread('rob.png');
I1 = im2bw(I0,graythresh(I0)-0.3);
imshow(I1)
Then just use find() to identificate first and last pixels
Use atan2d to calculate angle
  7 件のコメント
moh ab
moh ab 2020 年 3 月 23 日
please help me
darova
darova 2020 年 3 月 23 日
use bwlabel
L = bwlabel(I);
[y1,x1] = find(L==1);
x1 = mean(x1); % coordinates of the center
y1 = mean(y1);

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTracking and Motion Estimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by