How to find the minimum area bounding box of a region returned from regionprops
이전 댓글 표시
For an image containing rectangles that are rotated with respect to the image axes, regionprops will return the bounding box coordinates of an ROI containg a rectangle, but with the ROI edges parallel with the image edges. The minimum area bounding box would be an ROI having verticies congruent with the rectangles corners; a bounding box with edges not parallel to the image axes.
Is there a function that utilizes the output of regionprops for a given region in an image and produces the minimum area bounding box? It seems this should be possible using the Feret dimensions.
답변 (1개)
Image Analyst
2024년 1월 4일
0 개 추천
댓글 수: 2
Jeremy
2024년 1월 9일
이동: Image Analyst
2024년 1월 9일
Image Analyst
2024년 1월 9일
이동: Image Analyst
2024년 1월 9일
I don't know. You can try editing the function - sometimes the source code is available. Then you could make a copy and code in your custom modifications.
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!