Ask Your Question

Revision history [back]

How is the width and height of x,y,w,h=boundingRect(c) determined?

I have looked everywhere online, and everywhere I look I see that boundingRect outputs the x,y positions of the top left corner of the contour and the width (w), and height (h) are determined from that point. I want to know what determines what the width and height are? How does boundingRect() work? If that information is online somewhere, I have not been able to find it using google.