Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvBoundingRect

cvBoundingRect


Module: OpenCV

Calculates the up-right bounding rectangle of a point set.

Name Type Description
Input value
inPoints Point2DArray Input Point2D array.
Output value
outRect Box

Description

The function calculates the minimal bounding box for specified point set.

Examples

Output box of cvBoundingRect performed on set of points from sample image drawn on this image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input array must not be empty in cvBoundingRect.

Complexity Level

This filter is available on Basic Complexity Level.