imaqRemoveContour
Usage
int imaqRemoveContour(ROI* roi, ContourID id);
Purpose
Deletes the specified contour from the specified region of interest (ROI), freeing all allocated memory associated with the contour.
Parameters
Name
|
Type
|
Description
|
---|---|---|
roi | ROI* | The ROI containing the contour to remove. |
id | ContourID | The ContourID of the contour to remove. After this operation, the ContourID no longer correlates to a valid contour. Set this parameter to IMAQ_ALL_CONTOURS to remove all contours. |
Return Value
Type |
Description |
---|---|
int | On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError(). |