imaqGetContourInfo2

NI Vision for LabWindows/CVI Function

imaqGetContourInfo2

Usage

ContourInfo2* imaqGetContourInfo2(const ROI* roi, ContourID id);

Purpose

Returns information about a particular contour. The structure that the function returns contains a copy of the data from the contour. Modifications to the information in the structure do not affect the contour.

Parameters

Name

Type

Description

roi const ROI* The region of interest (ROI) containing the contour from which the function gets the information.
id ContourID The ContourID of the contour about which the function gets information.

Return Value

Type

Description

ContourInfo2* On success, this function returns a pointer to the structure containing information about the requested contour. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with this structure, dispose of the pointer by calling imaqDispose().