imaqCannyEdgeFilter

NI Vision for LabWindows/CVI Function

imaqCannyEdgeFilter

Usage

int imaqCannyEdgeFilter(Image* dest, const Image* source, const CannyOptions* options);

Purpose

Outlines edges in an image using the Canny algorithm, which is useful for images with poor signal-to-noise ratios.

Image Types Supported

IMAQ_IMAGE_U8

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The image whose edges the function outlines.
options const CannyOptions* A description of filter parameters to use in the algorithm.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().

Parameter Discussion

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

sigma 1.00
upperThreshold 0.70
lowerThreshold 0.20
windowSize 9