test_sampset_boxT_test_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box (Operator)

Name

test_sampset_boxT_test_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box — Classify a set of arrays.

Warning

test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM, KNN or GMM operators instead. The operator will be removed with HALCON 25.11.

Signature

test_sampset_box( : : ClassifHandle, SampKey : Error)

Herror T_test_sampset_box(const Htuple ClassifHandle, const Htuple SampKey, Htuple* Error)

void TestSampsetBox(const HTuple& ClassifHandle, const HTuple& SampKey, HTuple* Error)

double HFeatureSet::TestSampsetBox(const HClassBox& ClassifHandle) const

double HClassBox::TestSampsetBox(const HFeatureSet& SampKey) const

static void HOperatorSet.TestSampsetBox(HTuple classifHandle, HTuple sampKey, out HTuple error)

double HFeatureSet.TestSampsetBox(HClassBox classifHandle)

double HClassBox.TestSampsetBox(HFeatureSet sampKey)

def test_sampset_box(classif_handle: HHandle, samp_key: HHandle) -> float

Description

In contrast to learn_sampset_boxlearn_sampset_boxLearnSampsetBoxLearnSampsetBoxlearn_sampset_box there is not a learning here. Typically you use test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box to classify independent test data. ErrorErrorErrorerrorerror gives you information about the applicability of the learned training set on new examples.

Execution Information

Parameters

ClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle (input_control)  class_box HClassBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the classifier.

SampKeySampKeySampKeysampKeysamp_key (input_control)  feature_set HFeatureSet, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Key of the test data.

ErrorErrorErrorerrorerror (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Error during the assignment.

Result

test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box returns 2 ( H_MSG_TRUE) . An exception is raised, if if key SampKeySampKeySampKeysampKeysamp_key does not exist or problems occur while opening the file.

Possible Predecessors

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxcreate_class_box, learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxlearn_class_box, set_class_box_paramset_class_box_paramSetClassBoxParamSetClassBoxParamset_class_box_param

Possible Successors

enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxenquire_class_box, learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxlearn_class_box, write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxwrite_class_box, close_class_boxclose_class_boxCloseClassBoxCloseClassBoxclose_class_box, clear_sampsetclear_sampsetClearSampsetClearSampsetclear_sampset

See also

enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxenquire_class_box, learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxlearn_class_box, learn_sampset_boxlearn_sampset_boxLearnSampsetBoxLearnSampsetBoxlearn_sampset_box, read_sampsetread_sampsetReadSampsetReadSampsetread_sampset

Module

Foundation