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.