imaqLearnPattern2

NI Vision for LabWindows/CVI Function

imaqLearnPattern2

Usage

int imaqLearnPattern2(Image* image, LearningMode learningMode, LearnPatternAdvancedOptions* advancedOptions);

Purpose

Creates a description of the template image you want to search for during the matching phase.

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

Image Types Supported

IMAQ_IMAGE_U8

Parameters

Name

Type

Description

image Image* The image about which the function learns pattern matching information. The function appends the pattern matching information to the image.
learningMode LearningMode The mode in which the function learns the template image.
advancedOptions LearnPatternAdvancedOptions* Advanced options to 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().