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