read_class_train_dataT_read_class_train_dataReadClassTrainDataReadClassTrainData (Operator)
Name
read_class_train_dataT_read_class_train_dataReadClassTrainDataReadClassTrainData
— Read the training data for classifiers from a file.
Signature
Description
read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainData
reads the saved training data for classifiers
from the file FileNameFileNameFileNameFileNamefileName
(see write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainData
).
The default HALCON file extension for training data for a
classifier is 'ctd'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without 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
FileNameFileNameFileNameFileNamefileName
(input_control) filename.read →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name of the training data.
File extension: .ctd
ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandle
(output_control) class_train_data →
HClassTrainData, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the training data.
Result
read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainData
returns 2 (H_MSG_TRUE).
An exception is raised if it was not possible to open the file
FileNameFileNameFileNameFileNamefileName
or the file has the wrong format.
See also
create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainData
,
write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainData
Module
Foundation