imaqEdgeTool

NI Vision for LabWindows/CVI Function

imaqEdgeTool

Usage

EdgeReport* imaqEdgeTool(const Image* image, const Point* points, int numPoints, const EdgeOptions* options, int* numEdges);

Purpose

Finds edges along a path in an image.

Note  This function is obsolete. The replacement function is imaqEdgeTool2().

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

image const Image* The image in which to find the edges.
points const Point* The path along which the function detects edges. This parameter is required and cannot be NULL.
numPoints int The number of points in the points array.
options const EdgeOptions* Describes how you want the function to find edges. This parameter is required and cannot be NULL.
numEdges int* On return, the number of edges that the function found. Set this parameter to NULL if you do not need this information.

Return Value

Type

Description

EdgeReport* On success, this function returns an array of information about each edge. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the return value, dispose of this function by calling imaqDispose().