Operators |
set_reference_template — Define reference position for a matching template.
set_reference_template 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_template( : : TemplateID, Row, Column : )
set_reference_template allows to define a new reference position for a template. As default after calling create_template or create_template_rot the center of gravity of the template is used. Using set_reference_template 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.
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.Template number.
Reference position of template (row).
Reference position of template (column).
If the parameter values are correct, the operator set_reference_template returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
create_template, create_template_rot, read_template, adapt_template
best_match, best_match_mg, best_match_rot, fast_match, fast_match_mg
Matching
Operators |