Operator Reference
adapt_template (Operator)
adapt_template
— Adapting a template to the size of an image.
Warning
adapt_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
adapt_template(Image : : TemplateID : )
Description
The operator adapt_template
serves to adapt a
template which has been created by create_template
to the size of an image.
The operator adapt_template
can be called before
the template is used with images of another size,
or if the image used to create the template had
another size.
If it is not called explicitly it will be called
internally each time another image size is used.
The contents of the image is hereby irrelevant; only the
width of Image
will be considered.
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
Image
(input_object) singlechannelimage(-array) →
object (byte)
Image which determines the size of the later matching.
TemplateID
(input_control, state is modified) template →
(handle)
Template number.
Result
If the parameter values are correct, the operator adapt_template
returns the value 2 (
H_MSG_TRUE)
.
If necessary, an exception is raised.
Possible Predecessors
create_template
,
create_template_rot
,
read_template
Possible Successors
set_reference_template
,
best_match
,
fast_match
,
fast_match_mg
,
set_offset_template
,
best_match_mg
,
best_match_pre_mg
,
best_match_rot
,
best_match_rot_mg
Module
Matching