imaqAddRectContour
Usage
ContourID imaqAddRectContour(ROI* roi, Rect rect);
Purpose
Creates a new rectangle region of interest (ROI) contour and adds the rectangle to the provided ROI.
Parameters
|
Name
|
Type
|
Description
|
|---|---|---|
| roi | ROI* | The ROI to contain the new contour. |
| rect | Rect | The pixel location of the 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(). |