how to determine the coordinates of points
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to determinate the coordinates of this points
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170304/image.jpeg)
0 Commenti
Risposta accettata
Bshara Murr
il 28 Nov 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Cartesian Coordinate System Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!