Drawing a rectangle inside ROI
Show older comments
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 Comments
Image Analyst
on 14 Jul 2021
Edited: Image Analyst
on 14 Jul 2021
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
on 14 Jul 2021
Accepted Answer
More Answers (0)
Categories
Find more on ROI-Based Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

