ClassesClasses | | Operators

write_templatewrite_templateWriteTemplateWriteTemplate (Operator)

Name

write_templatewrite_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

write_template( : : TemplateID, FileName : )

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

Herror T_write_template(const Htuple TemplateID, const Htuple FileName)

void WriteTemplate(const HTuple& TemplateID, const HTuple& FileName)

void HTemplate::WriteTemplate(const HString& FileName) const

void HTemplate::WriteTemplate(const char* FileName) const

static void HOperatorSet.WriteTemplate(HTuple templateID, HTuple fileName)

void HTemplate.WriteTemplate(string fileName)

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

Parameters

TemplateIDTemplateIDTemplateIDTemplateIDtemplateID (input_control)  template HTemplate, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

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


ClassesClasses | | Operators