Operator Reference
serialize_template (Operator)
serialize_template — Serialize a template.
Warning
serialize_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
serialize_template( : : TemplateID : SerializedItemHandle)
Description
serialize_template serializes the data of a template (see
fwrite_serialized_item for an introduction of the basic
principle of serialization). The same data that is written in a
file by write_template is converted to a serialized item.
The template is defined by the handle TemplateID. The
serialized template is returned by the handle
SerializedItemHandle and can be deserialized by
deserialize_template.
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
TemplateID (input_control) template → (handle)
Handle of the template.
SerializedItemHandle (output_control) serialized_item → (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator
serialize_template returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Predecessors
create_template,
create_template_rot
Possible Successors
fwrite_serialized_item,
send_serialized_item,
deserialize_template
Module
Matching