how to determine the coordinates of points
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
kmla
el 28 de Nov. de 2017
Respondida: Bshara Murr
el 28 de Nov. de 2017
I want to determinate the coordinates of this points

0 comentarios
Respuesta aceptada
Bshara Murr
el 28 de Nov. de 2017
I = imread('bwimage.jpg');
I = rgb2gray(I);
N = bwlabel(I);
s = regionprops(N, 'centroid');
XY=[s.Centroid];
XY(1:2:end);
XY(2:2:end);
The XY contains the coordinates the last two lines will give you two arrays of X and Y coordinates
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Computational Geometry en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!