clear_template ( : : TemplateID : )

Deallocation of the memory of a template.

The operator clear_template deallocates the memory of a template which has been created by create_template or create_template_rot. After execution of the operator clear_template the template can no longer be used. The value of TemplateID is not valid. However, the number can be used again by further calls of create_template or create_template_rot.


Parameters

TemplateID (input_control)
template -> integer
Template number.


Result

If the number of the template is valid, the operator clear_template returns the value 2 (H_MSG_TRUE). If necessary an exception handling will be raised.


Parallelization Information

clear_template is processed completely exclusively without parallelization.


Possible Predecessors

create_template, create_template_rot, read_template, write_template


See also

clear_all_templates


Module

Template matching



Copyright © 1996-2005 MVTec Software GmbH