imaqGetNearestNeighborOptions

NI Vision for LabWindows/CVI Function

imaqGetNearestNeighborOptions

Usage

int imaqGetNearestNeighborOptions(const ClassifierSession* session, NearestNeighborOptions* options);

Purpose

Get options from the nearest neighbor engine that the classifier session was trained with.

Parameters

Name

Type

Description

session const ClassifierSession* The classifier session from which to get the options.
options NearestNeighborOptions* On return, the nearest neighbor options. This parameter is required and cannot be NULL.

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().