Check larges polygon in contour [closed]
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: 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.
please rather edit your previous question to the same topic, instead of posting all over again, thank you.
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.