Herror ::read_template (
    const HTuple &FileName,
    long *TemplateID
)

Reading a template from file.

The operator ::read_template reads a matching template from file which has been written with ::write_template.


Parameters

FileName (input_control)
filename -> HTuple.char *
file name.

TemplateID (output_control)
template -> long *
Template number.


Result

If the file name is valid, the operator ::read_template returns the value H_MSG_TRUE. If necessary an exception handling will be raised.


Possible Successors

::adapt_template, ::set_reference_template, ::set_offset_template, ::best_match, ::fast_match, ::best_match_rot


Module

Gray value template matching



Copyright © 1996-2002 MVTec Software GmbH