imaqRake

NI Vision for LabWindows/CVI Function

imaqRake

Usage

RakeReport* imaqRake(const Image* image, const ROI* roi, RakeDirection direction, EdgeProcess process, const RakeOptions* options);

Purpose

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

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

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 edges.
roi const 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.
options const RakeOptions* Describes how to search for the edges.

Return Value

Type

Description

RakeReport* 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

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

threshold 40
width 4
steepness 2
subsamplingRatio 5
subpixelType IMAQ_QUADRATIC
subpixelDivisions 1