フィルターのクリア

how to draw a line between two centroids

2 ビュー (過去 30 日間)
sai pavan
sai pavan 2016 年 1 月 6 日
回答済み: Stalin Samuel 2016 年 1 月 6 日
I want to join centroids of two objects in an image using a line

回答 (1 件)

Stalin Samuel
Stalin Samuel 2016 年 1 月 6 日
x=[x1,y1] % centroid of object 1
y=[x2,y2] % centroid of object 2
plot(x,y) % connecting two centroids using line

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by