write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data (Operator)
Name
write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data
— Save the training data for classifiers in a file.
Signature
Description
write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data
writes the training data for classifiers
ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle
to the file given by FileNameFileNameFileNamefileNamefile_name
. The classifier can be read again
with read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataread_class_train_data
.
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
ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle
(input_control) class_train_data →
HClassTrainData, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the training data.
FileNameFileNameFileNamefileNamefile_name
(input_control) filename.write →
HTuplestrHTupleHtuple (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_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data
returns 2 (
H_MSG_TRUE)
.
An exception is raised if it was not possible to open file
FileNameFileNameFileNamefileNamefile_name
.
See also
create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDatacreate_class_train_data
,
read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataread_class_train_data
Module
Foundation