imaqGetContour

NI Vision for LabWindows/CVI Function

imaqGetContour

Usage

ContourID imaqGetContour(const ROI* roi, unsigned int index);

Purpose

Returns the ContourID of the contour at the specified index location within a region of interest (ROI).

Parameters

Name

Type

Description

roi const ROI* The ROI containing the desired contour.
index unsigned int The zero-offset index of the contour to get.

Return Value

Type

Description

ContourID On success, this function returns the ContourID of the requested contour. On failure, this function returns 0. To get extended error information, call imaqGetLastError().