Name
set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate — Define reference position for a matching template.
Warning
set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
shape-based or NCC-based operators instead.
set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate allows to define
a new reference position for a template.
As default after calling create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate or
create_template_rotcreate_template_rotCreateTemplateRotcreate_template_rotCreateTemplateRotCreateTemplateRot
the center of gravity of the template is used.
Using set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate the reference position can
be redefined. In the case of the center of gravity as
reference the vector (0,0) is returned after matching
for a null translation of the pattern relative to the image.
- 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:
The value of this parameter may not be shared across multiple threads without external synchronization.
Reference position of template (row).
Reference position of template (column).
If the parameter values are correct, the operator
set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate
returns the value 2 (H_MSG_TRUE).
If necessary, an exception is raised.
create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate,
create_template_rotcreate_template_rotCreateTemplateRotcreate_template_rotCreateTemplateRotCreateTemplateRot,
read_templateread_templateReadTemplateread_templateReadTemplateReadTemplate,
adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate
best_matchbest_matchBestMatchbest_matchBestMatchBestMatch,
best_match_mgbest_match_mgBestMatchMgbest_match_mgBestMatchMgBestMatchMg,
best_match_rotbest_match_rotBestMatchRotbest_match_rotBestMatchRotBestMatchRot,
fast_matchfast_matchFastMatchfast_matchFastMatchFastMatch,
fast_match_mgfast_match_mgFastMatchMgfast_match_mgFastMatchMgFastMatchMg
Matching