How can I get X and Y column Matrices from plotted data?

I have a circular-ish polygon of data points and would like to get these points into X and Y column matrices to do more work on like running the convex hull function.
Thanks

댓글 수: 2

"circular-ish polygon of data points" doesn't adequately describe the way the data are currently stored. Can you give an example (ideally using MATLAB code, not just a description) of the data you have, and how you want the output to look?
Here is an image of the data. It is a plot of 480x640 logical. I cannot provide the specific code as it requires many files to understand. It is a manipulated image file though.

답변 (2개)

Thorsten
Thorsten 2015년 6월 30일
[i j] = ind2sub(size(I), find(I == 0));
Sid
Sid 2015년 6월 30일
편집: Sid 2015년 6월 30일

0 개 추천

Perhaps check out bwboundaries example? (click here .)
Looks like there are a couple of different blobs, so I am not sure if you want to identify each one separately. If so, it might be useful to check out bwlabel (click here .)
HTH.

이 질문은 마감되었습니다.

질문:

2015년 6월 30일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by