imaqTrainNearestNeighborClassifier

NI Vision for LabWindows/CVI Function

imaqTrainNearestNeighborClassifier

Usage

NearestNeighborTrainingReport* imaqTrainNearestNeighborClassifier(ClassifierSession* session, const NearestNeighborOptions* options);

Purpose

Trains a classifier with the nearest neighbor engine.

Parameters

Name

Type

Description

session ClassifierSession* The classifier session to train.
options const NearestNeighborOptions* The options to use when training.

Return Value

Type

Description

NearestNeighborTrainingReport* On success, this function returns a report containing the results of the training. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the return value, dispose of the report by calling imaqDispose().