ClassesClasses | | Operators

write_class_svmT_write_class_svmWriteClassSvmWriteClassSvm (Operator)

Name

write_class_svmT_write_class_svmWriteClassSvmWriteClassSvm — Write a support vector machine to a file.

Signature

write_class_svm( : : SVMHandle, FileName : )

Herror T_write_class_svm(const Htuple SVMHandle, const Htuple FileName)

void WriteClassSvm(const HTuple& SVMHandle, const HTuple& FileName)

void HClassSvm::WriteClassSvm(const HString& FileName) const

void HClassSvm::WriteClassSvm(const char* FileName) const

static void HOperatorSet.WriteClassSvm(HTuple SVMHandle, HTuple fileName)

void HClassSvm.WriteClassSvm(string fileName)

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

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


ClassesClasses | | Operators