set_reference_templateT_set_reference_templateSetReferenceTemplateSetReferenceTemplateset_reference_template (算子名称)
名称
set_reference_templateT_set_reference_templateSetReferenceTemplateSetReferenceTemplateset_reference_template — Define reference position for a matching template.
警告
set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_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.
参数签名
Herror T_set_reference_template(const Htuple TemplateID, const Htuple Row, const Htuple Column)
描述
set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_reference_template allows to define
a new reference position for a template.
As default after calling create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template or
create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot
the center of gravity of the template is used.
Using set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_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:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
参数表
TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id (input_control, state is modified) template → HTemplate, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Template number.
RowRowRowRowrowrow (input_control) point.y → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Reference position of template (row).
ColumnColumnColumnColumncolumncolumn (input_control) point.x → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Reference position of template (column).
结果
If the parameter values are correct, 该算子
set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_reference_template
返回值 2 (
H_MSG_TRUE)
.
如有必要,将引发异常。
可能的前置算子
create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template,
create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot,
read_templateread_templateReadTemplateReadTemplateReadTemplateread_template,
adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_template
可能的后置算子
best_matchbest_matchBestMatchBestMatchBestMatchbest_match,
best_match_mgbest_match_mgBestMatchMgBestMatchMgBestMatchMgbest_match_mg,
best_match_rotbest_match_rotBestMatchRotBestMatchRotBestMatchRotbest_match_rot,
fast_matchfast_matchFastMatchFastMatchFastMatchfast_match,
fast_match_mgfast_match_mgFastMatchMgFastMatchMgFastMatchMgfast_match_mg
模块
Matching