ClassesClassesClassesClasses | | | | Operators

adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate (Operator)

Name

adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate — Adapting a template to the size of an image.

Warning

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

Signature

adapt_template(Image : : TemplateID : )

Herror adapt_template(const Hobject Image, const Hlong TemplateID)

Herror T_adapt_template(const Hobject Image, const Htuple TemplateID)

Herror adapt_template(Hobject Image, const HTuple& TemplateID)

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

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

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

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

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

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

void HOperatorSetX.AdaptTemplate(
[in] IHUntypedObjectX* Image, [in] VARIANT TemplateID)

void HTemplateX.AdaptTemplate([in] IHImageX* Image)

void HImageX.AdaptTemplate([in] IHTemplateX* TemplateID)

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

void HTemplate.AdaptTemplate(HImage image)

void HImage.AdaptTemplate(HTemplate templateID)

Description

The operator adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate serves to adapt a template which has been created by create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate to the size of an image. The operator adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate 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.

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.

Parameters

ImageImageImageImageImageimage (input_object)  singlechannelimage(-array) objectHImageHImageHImageHImageXHobject (byte)

Image which determines the size of the later matching.

TemplateIDTemplateIDTemplateIDTemplateIDTemplateIDtemplateID (input_control, state is modified)  template HTemplate, HTupleHTupleHTemplate, HTupleHTemplateX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Template number.

Result

If the parameter values are correct, the operator adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate, create_template_rotcreate_template_rotCreateTemplateRotcreate_template_rotCreateTemplateRotCreateTemplateRot, read_templateread_templateReadTemplateread_templateReadTemplateReadTemplate

Possible Successors

set_reference_templateset_reference_templateSetReferenceTemplateset_reference_templateSetReferenceTemplateSetReferenceTemplate, best_matchbest_matchBestMatchbest_matchBestMatchBestMatch, fast_matchfast_matchFastMatchfast_matchFastMatchFastMatch, fast_match_mgfast_match_mgFastMatchMgfast_match_mgFastMatchMgFastMatchMg, set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate, best_match_mgbest_match_mgBestMatchMgbest_match_mgBestMatchMgBestMatchMg, best_match_pre_mgbest_match_pre_mgBestMatchPreMgbest_match_pre_mgBestMatchPreMgBestMatchPreMg, best_match_rotbest_match_rotBestMatchRotbest_match_rotBestMatchRotBestMatchRot, best_match_rot_mgbest_match_rot_mgBestMatchRotMgbest_match_rot_mgBestMatchRotMgBestMatchRotMg

Module

Matching


ClassesClassesClassesClasses | | | | Operators