how to draw a line between two centroids
2 次查看(过去 30 天)
显示 更早的评论
I want to join centroids of two objects in an image using a line
0 个评论
回答(1 个)
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!