How to draw a line in a series of points

1 次查看(过去 30 天)
This is image is after I did a centroid plotting. So how can I draw the line through
s = regionprops(Iskel,'centroid');
centroids = cat(1,s.Centroid);
imshow(maskedIbw)
hold on
plot(centroids(:,1),centroids(:,2),'b*')
hold off

采纳的回答

Jaap
Jaap 2012-1-16
plot(centroids(:,1),centroids(:,2),'b-')

更多回答(1 个)

Kim
Kim 2012-1-16
plot(centroids(:,1),centroids(:,2),'LineWidth',2,'Color','green')

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by