Name
set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate — Gray value offset for template.
set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate adds a gray value offset
to the template to eliminate gray value changes in the image.
The parameter GrayOffsetGrayOffsetGrayOffsetGrayOffsetGrayOffsetgrayOffset specifies a difference
relative to the gray values of the pattern when it was
created with create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate
(not relative to the last call of set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate).
The values of GrayOffsetGrayOffsetGrayOffsetGrayOffsetGrayOffsetgrayOffset has to be chosen according
to the gray values of the image: A brighter image results
in a positive value, a darker image results in a negative
value. set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate has to be called each time
the gray values of the image changes.
The gray values can be meassured in a reference area using
intensityintensityIntensityintensityIntensityIntensity or min_max_graymin_max_grayMinMaxGraymin_max_grayMinMaxGrayMinMaxGray
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Offset of gray values.
Default value: 0
Suggested values: -10, -5, -2, -1, 0, 1, 2, 5, 10
Typical range of values: -255
≤
GrayOffset
GrayOffset
GrayOffset
GrayOffset
GrayOffset
grayOffset
≤
255
Minimum increment: 1
Recommended increment: 1
If the parameter values are correct, the operator
set_offset_templateset_offset_templateSetOffsetTemplateset_offset_templateSetOffsetTemplateSetOffsetTemplate
returns the value 2 (H_MSG_TRUE).
If necessary, an exception is raised.
create_templatecreate_templateCreateTemplatecreate_templateCreateTemplateCreateTemplate,
adapt_templateadapt_templateAdaptTemplateadapt_templateAdaptTemplateAdaptTemplate,
read_templateread_templateReadTemplateread_templateReadTemplateReadTemplate
best_matchbest_matchBestMatchbest_matchBestMatchBestMatch,
best_match_mgbest_match_mgBestMatchMgbest_match_mgBestMatchMgBestMatchMg,
best_match_rotbest_match_rotBestMatchRotbest_match_rotBestMatchRotBestMatchRot,
fast_matchfast_matchFastMatchfast_matchFastMatchFastMatch,
fast_match_mgfast_match_mgFastMatchMgfast_match_mgFastMatchMgFastMatchMg
Matching