How to fill the shape which i use minAreaRect or minEnclosingCircle?

asked 2014-04-04 10:58:16 -0500

wuling gravatar image

updated 2014-04-04 10:58:56 -0500

Hi all:

image description

I can use findContours to find any shape contours and also use minarearect or minEnclosingCircle,but i have no idea to fill circle or rectangle of the minimum area enclosing .Does anyone have good ideas? Any help is highly appreciated! Thanks

edit retag flag offensive close merge delete


  • anything drawn with a thickness of -1 will be 'filled' (circle,line,rectangle,drawContours)
  • fillPoly()
  • floodfill()
berak gravatar imageberak ( 2014-04-04 11:05:30 -0500 )edit

dear berak thanks

wuling gravatar imagewuling ( 2014-04-05 02:22:23 -0500 )edit