how to determine the coordinates of points
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to determinate the coordinates of this points
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170304/image.jpeg)
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cartesian Coordinate System Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!