cv.boundingRect - MATLAB File Help
cv.boundingRect

Calculates the up-right bounding rectangle of a point set

rct = cv.boundingRect(points)
rct = cv.boundingRect(mask)

Input

Output

The function calculates and returns the minimal up-right bounding rectangle for the specified point set.

See also