MATLAB File Help: cv.minAreaRect Index
cv.minAreaRect

Finds a rotated rectangle of the minimum area enclosing the input 2D point set

rct = cv.minAreaRect(points)

Input

Output

The function calculates and returns the minimum-area bounding rectangle (possibly rotated) for a specified point set. Developer should keep in mind that the returned rct can contain negative indices when data is close to the containing Mat element boundary.

See also