How do i extract points from roi using roipoly?
조회 수: 6 (최근 30일)
이전 댓글 표시
So i have set of random x and y cordinate , i draw roi by roipoly. How can i just get the x and y coordinates of the points that are inside of roi( as shown in attached)? or any other way i could do ?
댓글 수: 0
채택된 답변
Cris LaPierre
2020년 10월 30일
Assign the output of roipoly to a variable. See the syntax section of the documentation page. You probably want the following syntax:
[BW,xi2,yi2] = roipoly(___)
댓글 수: 2
Cris LaPierre
2020년 10월 30일
Ah, thank you for clarifying. In that case, try using inpolygon. You will need the xi2 and yi2 outputs above as inputs to inpolygon.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!