Filter löschen
Filter löschen

how to determine the coordinates of points

2 Ansichten (letzte 30 Tage)
kmla
kmla am 28 Nov. 2017
Beantwortet: Bshara Murr am 28 Nov. 2017
I want to determinate the coordinates of this points

Akzeptierte Antwort

Bshara Murr
Bshara Murr am 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

Weitere Antworten (0)

Kategorien

Mehr zu Cartesian Coordinate System Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by