Need exact co-ordinate points for an irregular shape
조회 수: 2 (최근 30일)
이전 댓글 표시
I need to calculate slopes of some irregular ROIs. So, I need the exact co-ordinates of few points. Is it possible to get the exact co-ordinate points of the highlighted points? As I have many ROIs in a single image, I need the co-ordinates automatically.
댓글 수: 0
채택된 답변
KSSV
2021년 6월 18일
If I is your binarized image.
[y,x] = find(I) ;
idx = boundary(x,y) ;
x = x(idx) ; y = y(idx) ;
The above gives the coordinates of boundary. You can pick the points based on distance from mean logic.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!