Halcon灰度模板(Halcon grayscale template)

灰度模板创建 create_template跟create_template_rot   //”rot”表示带角度的

灰度模板查找 fast_match,fast_match_msg,best_match,best_match_mg,best_match_rot_mg //“mg”表示带金字塔

fast_match:快速匹配

best_match:尽量匹配最好

灰度模板匹配容易受光照影响,可以用set_offset_template设置灰度偏差

一般方法:首先用intesity获取模板图像的均值灰度mean1和当前图像的均值灰度mean2,那么

set_offset_template(mean2-mean1)就可以自适应灰度的变化

————————

Create grayscale template_ Template and create_ template_ rot    // “Rot” means angled

灰度模板查找 fast_match,fast_match_msg,best_match,best_match_mg,best_match_rot_mg //“mg”表示带金字塔

fast_ Match: quick match

best_ Match: try to match the best

Gray template matching is easily affected by illumination, so set can be used_ offset_ Template set gray deviation

General method: firstly, the average gray level mean1 of the template image and the average gray level mean2 of the current image are obtained by intensity, then

set_ offset_ Template (mean2-mean1) can adapt to the change of gray level