ClassesClasses | | Operators

write_class_boxwrite_class_boxWriteClassBoxWriteClassBox (Operator)

Name

write_class_boxwrite_class_boxWriteClassBoxWriteClassBox — Save a classifier in a file.

Warning

write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBox is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM, KNN or GMM operators instead.

Signature

write_class_box( : : ClassifHandle, FileName : )

Herror write_class_box(const Hlong ClassifHandle, const char* FileName)

Herror T_write_class_box(const Htuple ClassifHandle, const Htuple FileName)

void WriteClassBox(const HTuple& ClassifHandle, const HTuple& FileName)

void HClassBox::WriteClassBox(const HString& FileName) const

void HClassBox::WriteClassBox(const char* FileName) const

static void HOperatorSet.WriteClassBox(HTuple classifHandle, HTuple fileName)

void HClassBox.WriteClassBox(string fileName)

Description

write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBox writes the classifier ClassifHandleClassifHandleClassifHandleClassifHandleclassifHandle to the file given by FileNameFileNameFileNameFileNamefileName. The classifier can be read with read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBox. The default HALCON file extension for the box classifier is 'gbc'.

Attention

If a file with this name exists, it is overwritten without a warning. The file can not be edited.

Execution Information

Parameters

ClassifHandleClassifHandleClassifHandleClassifHandleclassifHandle (input_control)  class_box HClassBox, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the classifier.

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

Name of the file which contains the written data.

File extension: .gbc

Result

write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBox returns 2 (H_MSG_TRUE). An exception is raised if it was not possible to open file FileNameFileNameFileNameFileNamefileName.

Possible Predecessors

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBox, enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxEnquireClassBox, learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxLearnClassBox, test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxTestSampsetBox

Possible Successors

close_class_boxclose_class_boxCloseClassBoxCloseClassBoxCloseClassBox, clear_sampsetclear_sampsetClearSampsetClearSampsetClearSampset

See also

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBox, read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBox

Module

Foundation


ClassesClasses | | Operators