Check larges polygon in contour [closed]

asked 2019-12-29 03:17:11 -0600

dineshlama gravatar image

How can i check what size of poligyon eg. circle with max radius, square with max side length, rectangle with max l and b can be fitted inside a conter? Eg image: image description Here i have segmnted a region in given image using: RotatedRect minRect = minAreaRect(Mat(points)); if(minRect.size.width>10 && minRect.size.height>10)

But what i want is to get the contour inside which given size of polygon can fit. eg. in inside image circle with radious x can fit.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by berak
close date 2019-12-29 03:21:00.123306

Comments

please rather edit your previous question to the same topic, instead of posting all over again, thank you.

berak gravatar imageberak ( 2019-12-29 03:23:30 -0600 )edit

Previous question was relating to finding contineus contour since i was not getting proper contour from findContour function of OpenCV. Now i'v used my own algorithm to find this proper result and now the question is differnt i.e finding maximum size of rectangle/polygon inside the contour.

dineshlama gravatar imagedineshlama ( 2019-12-29 03:54:58 -0600 )edit