Drawing a rectangle inside ROI
이전 댓글 표시
I have an image with several ROIs(polygon). I need to calculate the middle points of the two sides of the polygon and therefore I need to draw a rectangle inside the polygons and need the corner points' coordinated of each rectangle. Minimum bounding box did not work for my image as I need to fit is inside the ROIs. Could you please help me with this?
I have attached the image.

댓글 수: 2
Image Analyst
2021년 7월 14일
편집: Image Analyst
2021년 7월 14일
Please attach a mat file with the coordinates of the polygons or ROI objects with the paper clip icon.
And is the background image of blobs used for anything, or does it basically not matter at all?
Those polygons don't seem to have anything to do with the blobs. I know you think that you need the middle of the sides of the polygons, but what do you really want to know? What do you want to know such that you think getting the middle of the sides will get it for you? If you had those points in yellow, then what? What's next?
Sunetra Banerjee
2021년 7월 14일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 ROI-Based Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


