フィルターのクリア

how to determine the coordinates of points

2 ビュー (過去 30 日間)
kmla
kmla 2017 年 11 月 28 日
回答済み: Bshara Murr 2017 年 11 月 28 日
I want to determinate the coordinates of this points

採用された回答

Bshara Murr
Bshara Murr 2017 年 11 月 28 日
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 件)

カテゴリ

Help Center および File ExchangeCartesian Coordinate System Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by