write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainData (Operator)
Name
write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainData
— Save the training data for classifiers in a file.
Signature
Description
write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainData
writes the training data for classifiers
ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandle
to the file given by FileNameFileNameFileNameFileNamefileName
. The classifier can be read again
with read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainData
.
The default HALCON file extension for the training data 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.
Parameters
ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandle
(input_control) class_train_data →
HClassTrainData, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the training data.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Name of the file in which the training data will be
written.
File extension: .ctd
Result
write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainData
returns 2 (H_MSG_TRUE).
An exception is raised if it was not possible to open file
FileNameFileNameFileNameFileNamefileName
.
See also
create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainData
,
read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainData
Module
Foundation