imaqGetROIBoundingBox

NI Vision for LabWindows/CVI Function

imaqGetROIBoundingBox

Usage

int imaqGetROIBoundingBox(const ROI* roi, Rect* boundingBox);

Purpose

Returns the bounding rectangle for the region of interest (ROI). The bounding rectangle is the smallest rectangle that contains all of the contours that comprise the ROI.

Parameters

Name

Type

Description

roi const ROI* The ROI from which the function gets the bounding rectangle information.
boundingBox Rect* On return, the bounding rectangle. This parameter is required and cannot be NULL.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().