ClassesClasses | | Operators

write_class_gmmT_write_class_gmmWriteClassGmmWriteClassGmm (Operator)

Name

write_class_gmmT_write_class_gmmWriteClassGmmWriteClassGmm — Write a Gaussian Mixture Model to a file.

Signature

write_class_gmm( : : GMMHandle, FileName : )

Herror T_write_class_gmm(const Htuple GMMHandle, const Htuple FileName)

void WriteClassGmm(const HTuple& GMMHandle, const HTuple& FileName)

void HClassGmm::WriteClassGmm(const HString& FileName) const

void HClassGmm::WriteClassGmm(const char* FileName) const

static void HOperatorSet.WriteClassGmm(HTuple GMMHandle, HTuple fileName)

void HClassGmm.WriteClassGmm(string fileName)

Description

write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmm writes the Gaussian Mixture Model (GMM) GMMHandleGMMHandleGMMHandleGMMHandleGMMHandle to the file given by FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the GMM classifier is 'ggc'. write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmm is typically called after the GMM has been trained with train_class_gmmtrain_class_gmmTrainClassGmmTrainClassGmmTrainClassGmm. The GMM can be read with read_class_gmmread_class_gmmReadClassGmmReadClassGmmReadClassGmm. write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmm does not write any training samples that possibly have been stored in the GMM. For this purpose, write_samples_class_gmmwrite_samples_class_gmmWriteSamplesClassGmmWriteSamplesClassGmmWriteSamplesClassGmm should be used.

Execution Information

Parameters

GMMHandleGMMHandleGMMHandleGMMHandleGMMHandle (input_control)  class_gmm HClassGmm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

GMM handle.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.write HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .ggc

Result

If the parameters are valid, the operator write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmm returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

train_class_gmmtrain_class_gmmTrainClassGmmTrainClassGmmTrainClassGmm

Possible Successors

clear_class_gmmclear_class_gmmClearClassGmmClearClassGmmClearClassGmm

See also

create_class_gmmcreate_class_gmmCreateClassGmmCreateClassGmmCreateClassGmm, read_class_gmmread_class_gmmReadClassGmmReadClassGmmReadClassGmm, write_samples_class_gmmwrite_samples_class_gmmWriteSamplesClassGmmWriteSamplesClassGmmWriteSamplesClassGmm

Module

Foundation


ClassesClasses | | Operators