write_class_gmm — Write a Gaussian Mixture Model to a file.
write_class_gmm writes the Gaussian Mixture Model (GMM) GMMHandle to the file given by FileName. The default HALCON file extension for the GMM classifier is 'ggc'. write_class_gmm is typically called after the GMM has been trained with train_class_gmm. The GMM can be read with read_class_gmm. write_class_gmm does not write any training samples that possibly have been stored in the GMM. For this purpose, write_samples_class_gmm should be used.
File extension: .ggc
If the parameters are valid, the operator write_class_gmm returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
create_class_gmm, read_class_gmm, write_samples_class_gmm