필터 지우기
필터 지우기

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 CenterFile Exchange에서 Cartesian Coordinate System Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by