write_class_boxT_write_class_boxWriteClassBoxWriteClassBoxwrite_class_box (Operator)
Name
write_class_boxT_write_class_boxWriteClassBoxWriteClassBoxwrite_class_box
— Save a classifier in a file.
Warning
write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box
is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM, KNN or GMM operators instead.
Signature
Description
write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box
writes the classifier ClassifHandleClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle
to the file given by FileNameFileNameFileNameFileNamefileNamefile_name
. The classifier can be read with
read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBoxread_class_box
.
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
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ClassifHandleClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle
(input_control) class_box →
HClassBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the classifier.
FileNameFileNameFileNameFileNamefileNamefile_name
(input_control) filename.write →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the file which contains the written data.
File extension: .gbc
Result
write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box
returns TRUE.
An exception is raised if it was not possible to open file
FileNameFileNameFileNameFileNamefileNamefile_name
.
Possible Predecessors
create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBoxcreate_class_box
,
enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxEnquireClassBoxenquire_class_box
,
learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxLearnClassBoxlearn_class_box
,
test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxTestSampsetBoxtest_sampset_box
Possible Successors
close_class_boxclose_class_boxCloseClassBoxCloseClassBoxCloseClassBoxclose_class_box
,
clear_sampsetclear_sampsetClearSampsetClearSampsetClearSampsetclear_sampset
See also
create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBoxcreate_class_box
,
read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBoxread_class_box
Module
Foundation