HALCON Reference Manual 10.0.2
Table of Contents / Matching / Gray-Value-Based ClassesClassesClasses | | | Operators

read_templateread_templateread_templateReadTemplateReadTemplate (Operator)

Name

read_templateread_templateread_templateReadTemplateReadTemplate — Reading a template from file.

Signature

read_template( : : FileName : TemplateID)

Herror read_template(const char* FileName, Hlong* TemplateID)

Herror T_read_template(const Htuple FileName, Htuple* TemplateID)

Herror read_template(const HTuple& FileName, Hlong* TemplateID)

void HTemplate::ReadTemplate(const HTuple& FileName)

void HOperatorSetX.ReadTemplate(
[in] VARIANT FileName, [out] VARIANT* TemplateID)

void HTemplateX.ReadTemplate([in] BSTR FileName)

static void HOperatorSet.ReadTemplate(HTuple fileName, out HTuple templateID)

public HTemplate(string fileName)

void HTemplate.ReadTemplate(string fileName)

Description

The operator read_templateread_templateread_templateReadTemplateReadTemplate reads a matching template from file which has been written with write_templatewrite_templatewrite_templateWriteTemplateWriteTemplate.

Parallelization

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

file name.

TemplateIDTemplateIDTemplateIDTemplateIDtemplateID (output_control)  template HTemplate, HTupleHTemplate, HTupleHTemplateX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Template number.

Result

If the file name is valid, the operator read_templateread_templateread_templateReadTemplateReadTemplate returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Successors

adapt_templateadapt_templateadapt_templateAdaptTemplateAdaptTemplate, set_reference_templateset_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplate, set_offset_templateset_offset_templateset_offset_templateSetOffsetTemplateSetOffsetTemplate, best_matchbest_matchbest_matchBestMatchBestMatch, fast_matchfast_matchfast_matchFastMatchFastMatch, best_match_rotbest_match_rotbest_match_rotBestMatchRotBestMatchRot

Module

Matching


Table of Contents / Matching / Gray-Value-Based ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH