Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If the rectangle is not rotated, then use boundigRect.

If the rectangle may be rotated, then use minAreaRect; the corners can be computed from it.