How can i find the both endpoints coordinates for a particular label number ?
조회 수: 1 (최근 30일)
이전 댓글 표시
First I label the image. so if i want to find the endpoints coordinates for a specific label then what i need to do ?
댓글 수: 1
답변 (1개)
Guillaume
2017년 9월 18일
See the 'BoundingBox' property returned by regionprops that you can call directly on your labeled image.
stats - regionprops(yourlabeledimage);
desiredboundingbox = stats(desiredlabel).BoundingBox
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!