write_templateT_write_templateWriteTemplateWriteTemplate (Operator)
Name
write_templateT_write_templateWriteTemplateWriteTemplate
— Writing a template to file.
Warning
write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplate
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 write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplate
writes a matching template
to file which can be read again with read_templateread_templateReadTemplateReadTemplateReadTemplate
.
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.
Parameters
TemplateIDTemplateIDTemplateIDTemplateIDtemplateID
(input_control) template →
HTemplate, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Template number.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
file name.
File extension: .gvt
Result
If the file name is valid (permission to write), the operator
write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplate
returns the value 2 (H_MSG_TRUE).
If necessary an exception is raised.
Possible Predecessors
create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplate
,
create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRot
Module
Matching