serialize_class_boxT_serialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box (Operator)

Name

serialize_class_boxT_serialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box — Serialize a classifier.

Warning

serialize_class_boxserialize_class_boxSerializeClassBoxSerializeClassBoxserialize_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. The operator will be removed with HALCON 25.11.

Signature

serialize_class_box( : : ClassifHandle : SerializedItemHandle)

Herror T_serialize_class_box(const Htuple ClassifHandle, Htuple* SerializedItemHandle)

void SerializeClassBox(const HTuple& ClassifHandle, HTuple* SerializedItemHandle)

HSerializedItem HClassBox::SerializeClassBox() const

static void HOperatorSet.SerializeClassBox(HTuple classifHandle, out HTuple serializedItemHandle)

HSerializedItem HClassBox.SerializeClassBox()

def serialize_class_box(classif_handle: HHandle) -> HHandle

Description

serialize_class_boxserialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box serializes a classifier (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The same data that is written in a file by write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxwrite_class_box is converted to a serialized item. The classifier is defined by the handle ClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle. The serialized classifier is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and can be deserialized by deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box.

Execution Information

Parameters

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

Handle of the classifier.

SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle (output_control)  serialized_item HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

Result

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

Possible Predecessors

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxcreate_class_box, enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxenquire_class_box, learn_class_boxlearn_class_boxLearnClassBoxLearnClassBoxlearn_class_box, test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box

See also

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxcreate_class_box, deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box

Module

Foundation