imaqSimpleEdge

NI Vision for LabWindows/CVI Function

imaqSimpleEdge

Usage

PointFloat* imaqSimpleEdge(const Image* image, const Point* points, int numPoints, const SimpleEdgeOptions* options, int* numEdges);

Purpose

Finds prominent edges along an array of pixel coordinates. This function can return the first edge, the first and the last edges, or all the edges.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

image const Image* The image in which you want to find 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 SimpleEdgeOptions* 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

PointFloat* On success, this function returns an array of points indicating the location of the edges. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the return value, dispose of the array by calling imaqDispose().