adapt_templateT_adapt_templateAdaptTemplateAdaptTemplateadapt_template (算子名称)

名称

adapt_templateT_adapt_templateAdaptTemplateAdaptTemplateadapt_template — 使模板适应图像的大小。

警告

adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_template is obsolete and is only provided for reasons of backward compatibility. New applications should use the shape-based or NCC-based operators instead.

参数签名

adapt_template(Image : : TemplateID : )

Herror T_adapt_template(const Hobject Image, const Htuple TemplateID)

void AdaptTemplate(const HObject& Image, const HTuple& TemplateID)

void HTemplate::AdaptTemplate(const HImage& Image) const

void HImage::AdaptTemplate(const HTemplate& TemplateID) const

static void HOperatorSet.AdaptTemplate(HObject image, HTuple templateID)

void HTemplate.AdaptTemplate(HImage image)

void HImage.AdaptTemplate(HTemplate templateID)

def adapt_template(image: HObject, template_id: HHandle) -> None

描述

该算子 adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_template serves to adapt a template which has been created by create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template to the size of an image. 该算子 adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_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 ImageImageImageImageimageimage will be considered.

运行信息

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.

参数表

ImageImageImageImageimageimage (input_object)  singlechannelimage(-array) objectHImageHObjectHImageHobject (byte)

Image which determines the size of the later matching.

TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id (input_control, state is modified)  template HTemplate, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Template number.

结果

If the parameter values are correct, 该算子 adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_template 返回值 2 ( H_MSG_TRUE) . 如有必要,将引发异常。

可能的前置算子

create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template, create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot, read_templateread_templateReadTemplateReadTemplateReadTemplateread_template

可能的后置算子

set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_reference_template, best_matchbest_matchBestMatchBestMatchBestMatchbest_match, fast_matchfast_matchFastMatchFastMatchFastMatchfast_match, fast_match_mgfast_match_mgFastMatchMgFastMatchMgFastMatchMgfast_match_mg, set_offset_templateset_offset_templateSetOffsetTemplateSetOffsetTemplateSetOffsetTemplateset_offset_template, best_match_mgbest_match_mgBestMatchMgBestMatchMgBestMatchMgbest_match_mg, best_match_pre_mgbest_match_pre_mgBestMatchPreMgBestMatchPreMgBestMatchPreMgbest_match_pre_mg, best_match_rotbest_match_rotBestMatchRotBestMatchRotBestMatchRotbest_match_rot, best_match_rot_mgbest_match_rot_mgBestMatchRotMgBestMatchRotMgBestMatchRotMgbest_match_rot_mg

模块

Matching