imaqReadClassifierFile

NI Vision for LabWindows/CVI Function

imaqReadClassifierFile

Usage

ClassifierSession* imaqReadClassifierFile(ClassifierSession* session, const char* fileName, ReadClassifierFileMode mode, ClassifierType* type, ClassifierEngineType* engine, String255 description);

Purpose

Reads a classifier session from file.

Parameters

Name

Type

Description

session ClassifierSession* The session in which to load the classifier file, or NULL to create a new session.
fileName const char* The name of the file to read. This parameter is required and cannot be NULL.
mode ReadClassifierFileMode The mode to use when reading the classifier session from file.
type ClassifierType* The type of classifier session that was read from file. Set this parameter to NULL if you do not need this information.
engine ClassifierEngineType* The type of engine the session was trained with. Set this parameter to NULL if you do not need this information.
description String255 On return, the description of the classification session. Set this parameter to NULL if you do not need this information.

Return Value

Type

Description

ClassifierSession* On success, this function returns a new classifier session. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the return value, dispose of the information by calling imaqDispose().