write_templateT_write_templateWriteTemplateWriteTemplatewrite_template (Operator)
Name
write_templateT_write_templateWriteTemplateWriteTemplatewrite_template
— Writing a template to file.
Warning
write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplatewrite_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 write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplatewrite_template
writes a matching template
to file which can be read again with read_templateread_templateReadTemplateReadTemplateReadTemplateread_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.
Parameters
TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id
(input_control) template →
HTemplate, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Template number.
FileNameFileNameFileNameFileNamefileNamefile_name
(input_control) filename.write →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
file name.
File extension: .gvt
Result
If the file name is valid (permission to write), the operator
write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplatewrite_template
returns the value TRUE.
If necessary an exception is raised.
Possible Predecessors
create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template
,
create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot
Module
Matching