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!


