imaqRake2

NI Vision for LabWindows/CVI Function

imaqRake2

Usage

RakeReport2* imaqRake2(Image* image, ROI* roi, RakeDirection direction, EdgeProcess process, int stepSize, EdgeOptions2* edgeOptions);

Purpose

Finds edges along a set of parallel lines defined inside a rectangular region.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

image Image* The image in which to find edges.
roi ROI* The rectangular region the function looks in for the edges. The first contour of roi must be a rectangle or a rotated rectangle.
direction RakeDirection The direction the function searches for edges along the search lines.
process EdgeProcess Defines the edges for which the function looks.
stepSize int Specifies the number of pixels between each search line.
edgeOptions EdgeOptions2* Specifies the parameters that are used to compute the edge profile and detect edges.

Return Value

Type

Description

RakeReport2* On success, this function returns information describing the calculated edges and the rake used by the function. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the information, dispose of it by calling imaqDispose().

Parameter Discussion

edgeOptions—Set edgeOptions to NULL to use the default options, as follows:

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