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!


