ClassesClassesClassesClasses | | | | Operators

read_class_train_dataread_class_train_dataReadClassTrainDataread_class_train_dataReadClassTrainDataReadClassTrainData (Operator)

Name

read_class_train_dataread_class_train_dataReadClassTrainDataread_class_train_dataReadClassTrainDataReadClassTrainData — Read the training data for classifiers from a file.

Signature

read_class_train_data( : : FileName : ClassTrainDataHandle)

Herror read_class_train_data(const char* FileName, Hlong* ClassTrainDataHandle)

Herror T_read_class_train_data(const Htuple FileName, Htuple* ClassTrainDataHandle)

Herror read_class_train_data(const HTuple& FileName, Hlong* ClassTrainDataHandle)

void HClassTrainData::ReadClassTrainData(const HTuple& FileName)

void ReadClassTrainData(const HTuple& FileName, HTuple* ClassTrainDataHandle)

void HClassTrainData::HClassTrainData(const HString& FileName)

void HClassTrainData::HClassTrainData(const char* FileName)

void HClassTrainData::ReadClassTrainData(const HString& FileName)

void HClassTrainData::ReadClassTrainData(const char* FileName)

void HOperatorSetX.ReadClassTrainData(
[in] VARIANT FileName, [out] VARIANT* ClassTrainDataHandle)

void HClassTrainDataX.ReadClassTrainData([in] BSTR FileName)

static void HOperatorSet.ReadClassTrainData(HTuple fileName, out HTuple classTrainDataHandle)

public HClassTrainData(string fileName)

void HClassTrainData.ReadClassTrainData(string fileName)

Description

read_class_train_dataread_class_train_dataReadClassTrainDataread_class_train_dataReadClassTrainDataReadClassTrainData reads the saved training data for classifiers from the file FileNameFileNameFileNameFileNameFileNamefileName (see write_class_train_datawrite_class_train_dataWriteClassTrainDatawrite_class_train_dataWriteClassTrainDataWriteClassTrainData). The default HALCON file extension for training data for a classifier is 'ctd'.

Parallelization

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

File name of the training data.

File extension: .ctd

ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandle (output_control)  class_train_data HClassTrainData, HTupleHTupleHClassTrainData, HTupleHClassTrainDataX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the training data.

Result

read_class_train_dataread_class_train_dataReadClassTrainDataread_class_train_dataReadClassTrainDataReadClassTrainData returns 2 (H_MSG_TRUE). An exception is raised if it was not possible to open the file FileNameFileNameFileNameFileNameFileNamefileName or the file has the wrong format.

See also

create_class_train_datacreate_class_train_dataCreateClassTrainDatacreate_class_train_dataCreateClassTrainDataCreateClassTrainData, write_class_train_datawrite_class_train_dataWriteClassTrainDatawrite_class_train_dataWriteClassTrainDataWriteClassTrainData

Module

Foundation


ClassesClassesClassesClasses | | | | Operators