Operator Reference
clear_template (Operator)
clear_template
— Deallocation of the memory of a template.
Warning
clear_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
clear_template( : : TemplateID : )
Description
The operator clear_template
deallocates the memory of
a template which has been created by create_template
or create_template_rot
.
After execution of the operator clear_template
the template can no longer be used. The value
of TemplateID
is not valid.
However, the number can be used again by further calls of
create_template
or create_template_rot
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters
TemplateID
(input_control, state is modified) template →
(handle)
Template number.
Result
If the number of the template is valid, the operator
clear_template
returns the value 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
Possible Predecessors
create_template
,
create_template_rot
,
read_template
,
write_template
Module
Matching