Operator Reference
write_template (Operator)
write_template — Writing a template to file.
Warning
write_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
write_template( : : TemplateID, FileName : )
Description
The operator write_template writes a matching template
to file which can be read again with read_template.
The default HALCON file extension for a template is 'gvt'.
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)
Template number.
FileName (input_control) filename.write → (string)
file name.
File extension:
.gvt
Result
If the file name is valid (permission to write), the operator
write_template returns the value 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
Possible Predecessors
create_template,
create_template_rot
Module
Matching