read_templateT_read_templateReadTemplateReadTemplateread_template (Operator)
Name
read_templateT_read_templateReadTemplateReadTemplateread_template
— Reading a template from file.
Warning
read_templateread_templateReadTemplateReadTemplateReadTemplateread_template
is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
shape-based or NCC-based operators instead.
Signature
Description
The operator read_templateread_templateReadTemplateReadTemplateReadTemplateread_template
reads a matching template
from file which has been written with write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplatewrite_template
.
The default HALCON file extension for a
template is 'gvt'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Parameters
FileNameFileNameFileNameFileNamefileNamefile_name
(input_control) filename.read →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
file name.
File extension:
.gvt
TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id
(output_control) template →
HTemplate, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Template number.
Result
If the file name is valid, the operator
read_templateread_templateReadTemplateReadTemplateReadTemplateread_template
returns the value 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
Possible Successors
adapt_templateadapt_templateAdaptTemplateAdaptTemplateAdaptTemplateadapt_template
,
set_reference_templateset_reference_templateSetReferenceTemplateSetReferenceTemplateSetReferenceTemplateset_reference_template
,
set_offset_templateset_offset_templateSetOffsetTemplateSetOffsetTemplateSetOffsetTemplateset_offset_template
,
best_matchbest_matchBestMatchBestMatchBestMatchbest_match
,
fast_matchfast_matchFastMatchFastMatchFastMatchfast_match
,
best_match_rotbest_match_rotBestMatchRotBestMatchRotBestMatchRotbest_match_rot
Module
Matching