read_template ( : : FileName : 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 -> string
file name.

TemplateID (output_control)
template -> integer
Template number.


Result

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


Parallelization Information

read_template is processed completely exclusively without parallelization.


Possible Successors

adapt_template, set_reference_template, set_offset_template, best_match, fast_match, best_match_rot


Module

Template matching



Copyright © 1996-2005 MVTec Software GmbH