First time here? Check out the FAQ!
answered 2016-01-13 06:08:20 -0600
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.