imaqAddOvalContour

NI Vision for LabWindows/CVI Function

imaqAddOvalContour

Usage

ContourID imaqAddOvalContour(ROI* roi, Rect boundingBox);

Purpose

Creates a new oval region of interest (ROI) contour and adds the oval to the provided ROI.

Parameters

Name

Type

Description

roi ROI* The ROI to contain the new contour.
boundingBox Rect The pixel location information of the bounding rectangle of the oval.

Return Value

Type

Description

ContourID On success, this function returns a ContourID for the contour. You can use the ContourID to reference the contour within the containing ROI. On failure, this function returns 0. To get extended error information, call imaqGetLastError().