Borrar filtros
Borrar filtros

how to draw a line between two centroids

2 visualizaciones (últimos 30 días)
sai pavan
sai pavan el 6 de En. de 2016
Respondida: Stalin Samuel el 6 de En. de 2016
I want to join centroids of two objects in an image using a line

Respuestas (1)

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by