best_match — Searching the best matching of a template and an image.
best_match is obsolete and is only provided for reasons of backward compatibility. New applications should use the shape-based or NCC-based operators instead.
The operator best_match performs a matching of the template of TemplateID and Image. Hereby the template will be moved over the points of Image so that the template will lie always inside Image. best_match works similar to fast_match, with the exception, that each time a better match is found the value of MaxError is internally updated to a lower value to reduce runtime.
With regard to the parameter SubPixel, the position will be indicated by subpixel accuracy. The matching criterion (“displaced frame difference”) is defined as follows:
Row and Column return the position of the best match, whereby Error indicates the average difference of the grayvalues. If no position with an error below MaxError was found the position (0,0) and a matching result of 255 for Error are returned. In this case MaxError has to be set larger.
The maximum error of the position (without noise) is 0.1 pixel. The average error is 0.03 pixel.
Input image inside of which the pattern has to be found.
Maximum average difference of the grayvalues.
Default value: 20.0
Suggested values: 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 9.0, 11.0, 15.0, 17.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0
Typical range of values: 0 ≤ MaxError ≤ 255
Minimum increment: 1
Recommended increment: 3
Subpixel accuracy in case of 'true'.
Default value: 'false'
List of values: 'false', 'true'
Row position of the best match.
Column position of the best match.
Average divergence of the grayvalues of the best match.
If the parameter values are correct, the operator best_match returns the value 2 (H_MSG_TRUE). If the input is empty (no input images are available) the behaviour can be set via set_system('no_object_result',<Result>). If necessary, an exception is raised.
create_template, read_template, set_offset_template, set_reference_template, adapt_template, draw_region, draw_rectangle1, reduce_domain
fast_match, fast_match_mg, best_match_mg, best_match_pre_mg, best_match_rot, best_match_rot_mg, exhaustive_match, exhaustive_match_mg