How to find object perimeter/bounding box perimeter?
조회 수: 1 (최근 30일)
이전 댓글 표시
Can some one please provide me a code that finds a ratio between object perimeter and bounding box perimeter:
ratio = object perimeter / bounding box perimeter
채택된 답변
Image Analyst
2017년 8월 13일
댓글 수: 5
Image Analyst
2018년 1월 6일
No. Why do you think bb(3) is the x max value? You can tell whomever told you that, that they're wrong because you and I can both read regionprops and see that "the vector [ul_corner width], ul_corner specifies the upper-left corner of the bounding box in the form [x y z ...]. width specifies the width of the bounding box along each dimension in the form [x_width y_width ...]"
So bb is [xLeft, yTop, xWidth, yHeight].
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!