write_training_componentsT_write_training_componentsWriteTrainingComponentsWriteTrainingComponents (Operator)
Name
write_training_componentsT_write_training_componentsWriteTrainingComponentsWriteTrainingComponents
— Write a component training result to a file.
Signature
Description
The operator write_training_componentswrite_training_componentsWriteTrainingComponentsWriteTrainingComponentsWriteTrainingComponents
writes the component
training result ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingID
to the file
FileNameFileNameFileNameFileNamefileName
. The training result can be read again with
read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponentsReadTrainingComponents
.
The default HALCON file extension for the component training result
is 'ct'.
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
ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingID
(input_control) component_training →
HComponentTraining, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the training result.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .ct
Result
If the file name is valid (write permission), the operator
write_training_componentswrite_training_componentsWriteTrainingComponentsWriteTrainingComponentsWriteTrainingComponents
returns the value 2 (H_MSG_TRUE). If necessary,
an exception is raised.
Possible Predecessors
train_model_componentstrain_model_componentsTrainModelComponentsTrainModelComponentsTrainModelComponents
Module
Matching