HALCON Reference Manual / OCR / Support-Vector-Machines Operators

get_support_vector_num_ocr_class_svm (Operator)

Name

get_support_vector_num_ocr_class_svm — Return the number of support vectors of an OCR classifier.

Synopsis

get_support_vector_num_ocr_class_svm( : : OCRHandle : NumSupportVectors, NumSVPerSVM)

Description

get_support_vector_num_ocr_class_svm returns in NumSupportVectors the number of support vectors that are stored in the support vector machine (SVM) given by OCRHandle. get_support_vector_num_ocr_class_svm should be called before the labels of individual support vectors are read out with get_support_vector_ocr_class_svm, e.g., for visualizing which of the training data become a SV (see get_support_vector_ocr_class_svm). The number of SVs in each classifier is listed in NumSVPerSVM. The reason that its sum differs from the number obtained in NumSupportVectors is that SV evaluations are reused throughout different binary sub-SVMs.

Parameters

OCRHandle (input_control) ocr_svm (integer)
OCR handle.

NumSupportVectors (output_control) integer (integer)
Total number of support vectors.

NumSVPerSVM (output_control) integer-array (integer)
Number of SV of each sub-SVM.

Result

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

Parallelization Information

get_support_vector_num_ocr_class_svm is reentrant and processed without parallelization.

Possible Predecessors

trainf_ocr_class_svm

Possible Successors

get_support_vector_ocr_class_svm

See also

create_ocr_class_svm

Module

OCR/OCV


HALCON Reference Manual / OCR / Support-Vector-Machines Operators
Version 9.0.2 Copyright © 1996-2010 MVTec Software GmbH