imaqEdgeTool4

NI Vision for LabWindows/CVI Function

imaqEdgeTool4

Usage

EdgeReport2* imaqEdgeTool4(Image* image, ROI* roi, EdgeProcess processType, EdgeOptions2* edgeOptions, const unsigned int reverseDirection);

Purpose

Finds edges along an ROI in an image.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

image Image* The image in which to find the edges.
roi ROI* The ROI to find edges along.
processType EdgeProcess The edge process type.
edgeOptions EdgeOptions2* Specifies the parameters that are used to compute the edge profile and detect edges.
reverseDirection const unsigned int Set this parameter to TRUE to reverse the direction that roi is traversed to find edges.

Return Value

Type

Description

EdgeReport2* On success, this function returns a structure of information about the edges found. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with this structure, dispose of it by calling imaqDispose().

Parameter Discussion

edgeOptions—Set edgeOptions to NULL to use the following default values:

polarity IMAQ_SEARCH_FOR_ALL_EDGES
kernelSize 3
width 3
minThreshold 10.0
interpolationType IMAQ_BILINEAR_FIXED
columnProcessingMode IMAQ_MEDIAN_COLUMNS