best_match T_best_match BestMatch BestMatch best_match  (Operator) 
best_match T_best_match BestMatch BestMatch best_match 
Warning 
best_match best_match BestMatch BestMatch best_match 
Signature 
void BestMatch (const HObject& Image TemplateID MaxError SubPixel Row Column Error 
void HTemplate ::BestMatch (const HImage& Image MaxError SubPixel Row Column Error 
void HTemplate ::BestMatch (const HImage& Image MaxError SubPixel Row Column Error 
void HTemplate ::BestMatch (const HImage& Image MaxError SubPixel Row Column Error 
void HTemplate ::BestMatch (const HImage& Image MaxError SubPixel Row Column Error 
            (
            Windows only)
           
void HImage ::BestMatch (const HTemplate& TemplateID MaxError SubPixel Row Column Error 
void HImage ::BestMatch (const HTemplate& TemplateID MaxError SubPixel Row Column Error 
void HImage ::BestMatch (const HTemplate& TemplateID MaxError SubPixel Row Column Error 
void HImage ::BestMatch (const HTemplate& TemplateID MaxError SubPixel Row Column Error 
            (
            Windows only)
           
 
static void HOperatorSet .BestMatch (HObject  image HTuple  templateID HTuple  maxError HTuple  subPixel HTuple  row HTuple  column HTuple  error 
void HTemplate .BestMatch (HImage  image maxError subPixel HTuple  row HTuple  column HTuple  error 
void HTemplate .BestMatch (HImage  image maxError subPixel row column error 
void HImage .BestMatch (HTemplate  templateID maxError subPixel HTuple  row HTuple  column HTuple  error 
void HImage .BestMatch (HTemplate  templateID maxError subPixel row column error 
 
def best_match (image template_id max_error sub_pixel 
def best_match_s (image template_id max_error sub_pixel 
 
Description 
The operator best_match best_match BestMatch BestMatch best_match TemplateID TemplateID TemplateID templateID template_id Image Image Image image image Image Image Image image image Image Image Image image image best_match best_match BestMatch BestMatch best_match fast_match fast_match FastMatch FastMatch fast_match MaxError MaxError MaxError maxError max_error 
With regard to the parameter SubPixel SubPixel SubPixel subPixel sub_pixel 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Image Image Image image image MaxError MaxError MaxError maxError max_error 
Row Row Row row row Column Column Column column column Error Error Error error error MaxError MaxError MaxError maxError max_error Error Error Error error error MaxError MaxError MaxError maxError max_error 
The maximum error of the position (without noise) is 0.1 pixel.
The average error is 0.03 pixel.
Execution Information 
Multithreading type: reentrant (runs in parallel with non-exclusive operators). 
Multithreading scope: global (may be called from any thread). 
Automatically parallelized on tuple level. 
 
Parameters 
Image Image Image image image singlechannelimage(-array) → object HImage HObject HObject Hobject  (byte) 
 
Input image inside of which the pattern has to
be found.
 
TemplateID TemplateID TemplateID templateID template_id template → HTemplate , HTuple HHandle HTuple Htuple  (handle)  (IntPtr )  (HHandle )  (handle )  
 
Template number.
 
MaxError MaxError MaxError maxError max_error real → HTuple float HTuple Htuple  (real)  (double )  (double )  (double )  
 
Maximum average difference of the gray values.
Default:
       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
Value range:
       0
          ≤
        
    MaxError 
MaxError 
MaxError 
maxError 
max_error 
    
          ≤
          255
Minimum increment:
       1
Recommended increment:
       3
 
SubPixel SubPixel SubPixel subPixel sub_pixel string → HTuple str HTuple Htuple  (string)  (string )  (HString )  (char* )  
 
Subpixel accuracy in case of 'true' "true" "true" "true" "true" 
Default:
       
'false' 
"false" 
"false" 
"false" 
"false" 
List of values:
       'false' "false" "false" "false" "false" , 'true' "true" "true" "true" "true" 
 
Row Row Row row row point.y(-array) → HTuple Sequence[float] HTuple Htuple  (real)  (double )  (double )  (double )  
 
Row position of the best match.
 
Column Column Column column column point.x(-array) → HTuple Sequence[float] HTuple Htuple  (real)  (double )  (double )  (double )  
 
Column position of the best match.
 
Error Error Error error error real(-array) → HTuple Sequence[float] HTuple Htuple  (real)  (double )  (double )  (double )  
 
Average divergence of the gray values of the
best match.
 
Result 
If the parameter values are correct, the operator best_match best_match BestMatch BestMatch best_match 2  (
      H_MSG_TRUE )
    .
If the input is empty (no input images are available) the behavior can
be set via set_system('no_object_result',<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) 
Possible Predecessors 
create_template create_template CreateTemplate CreateTemplate create_template read_template read_template ReadTemplate ReadTemplate read_template set_offset_template set_offset_template SetOffsetTemplate SetOffsetTemplate set_offset_template set_reference_template set_reference_template SetReferenceTemplate SetReferenceTemplate set_reference_template adapt_template adapt_template AdaptTemplate AdaptTemplate adapt_template draw_region draw_region DrawRegion DrawRegion draw_region draw_rectangle1 draw_rectangle1 DrawRectangle1 DrawRectangle1 draw_rectangle1 reduce_domain reduce_domain ReduceDomain ReduceDomain reduce_domain 
Alternatives 
fast_match fast_match FastMatch FastMatch fast_match fast_match_mg fast_match_mg FastMatchMg FastMatchMg fast_match_mg best_match_mg best_match_mg BestMatchMg BestMatchMg best_match_mg best_match_pre_mg best_match_pre_mg BestMatchPreMg BestMatchPreMg best_match_pre_mg best_match_rot best_match_rot BestMatchRot BestMatchRot best_match_rot best_match_rot_mg best_match_rot_mg BestMatchRotMg BestMatchRotMg best_match_rot_mg exhaustive_match exhaustive_match ExhaustiveMatch ExhaustiveMatch exhaustive_match exhaustive_match_mg exhaustive_match_mg ExhaustiveMatchMg ExhaustiveMatchMg exhaustive_match_mg 
Module 
Matching