imaqAddRotatedRectContour2

NI Vision for LabWindows/CVI Function

imaqAddRotatedRectContour2

Usage

ContourID imaqAddRotatedRectContour2(ROI* roi, RotatedRect rect);

Purpose

This function creates a new region of interest (ROI) contour that represents a rotated rectangle and adds it to the provided ROI.

Parameters

Name

Type

Description

roi ROI* The ROI to contain the new contour.
rect RotatedRect The coordinate location information for the rotated rectangle.

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().