write_class_svmT_write_class_svmWriteClassSvmWriteClassSvm (Operator)
Name
write_class_svmT_write_class_svmWriteClassSvmWriteClassSvm
— Write a support vector machine to a file.
Signature
Description
write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvm
writes the support vector machine (SVM)
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
to the file given by FileNameFileNameFileNameFileNamefileName
.
The default HALCON file extension for the SVM classifier is 'gsc'.
write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvm
is typically called after the SVM has been
trained with train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvm
. The SVM can be read with
read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvm
. write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvm
does not
write any training samples that possibly have been stored in the
SVM. For this purpose, write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
should be
used.
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
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
(input_control) class_svm →
HClassSvm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .gsc
Result
If the parameters are valid the operator write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvm
returns the value 2 (H_MSG_TRUE). If necessary, an exception is
raised.
Possible Predecessors
train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvm
Possible Successors
clear_class_svmclear_class_svmClearClassSvmClearClassSvmClearClassSvm
See also
create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm
,
read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvm
,
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
Module
Foundation