Operator Reference
deserialize_template (Operator)
deserialize_template — Deserialize a serialized template.
Warning
deserialize_template is obsolete and is only provided for
reasons of backward compatibility.
The operator will be removed with HALCON 25.11.
New applications should use the
shape-based or NCC-based operators instead.
Signature
deserialize_template( : : SerializedItemHandle : TemplateID)
Description
deserialize_template deserializes a template, that was serialized
by serialize_template (see fwrite_serialized_item for an
introduction of the basic principle of serialization). The
serialized template is defined by the handle SerializedItemHandle.
The deserialized values are stored in an automatically created
template with the handle TemplateID.
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
SerializedItemHandle (input_control) serialized_item → (handle)
Handle of the serialized item.
TemplateID (output_control) template → (handle)
Template number.
Result
If the parameters are valid, the operator
deserialize_template returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Predecessors
fread_serialized_item,
receive_serialized_item,
serialize_template
Possible Successors
adapt_template,
set_reference_template,
set_offset_template,
best_match,
fast_match,
best_match_rot
Module
Matching