write_class_knnπ
Short descriptionπ
write_class_knn β Save the k-NN classifier in a file.
Signatureπ
write_class_knn( class_knn KNNHandle, filename.write FileName )
Descriptionπ
write_class_knn writes the k-NN classifier KNNHandle
to the file given by FileName. The classifier can be read again
with read_class_knn. Since the samples are an intrinsic
component of a k-NN-classifier, the operator
write_class_knn saves them within the class file.
In contrast to other classifiers like SVM, there
is no operator for saving the samples separately.
The samples can be retrieved from a k-NN-classifier using
get_sample_class_knn.
The default HALCON file extension for the k-NN classifier is 'gnc'.
Execution informationπ
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π
KNNHandle (input_control) class_knn β (handle)
Handle of the k-NN classifier.
FileName (input_control) filename.write β (string)
Name of the file in which the classifier will be written.
File extension: .gnc
Resultπ
write_class_knn returns 2 (H_MSG_TRUE).
An exception is raised if it was not possible to open file
FileName.
Combinations with other operatorsπ
Referencesπ
Marius Muja, David G. Lowe: ``Fast Approximate Nearest Neighbors with Automatic Algorithm Configurationββ; International Conference on Computer Vision Theory and Applications (VISAPP 09); 2009.
Moduleπ
Foundation