matchTemplate
compares a template against overlapping
image regions using the specified method
. After the function finishes
the comparison, the best matches can be found as global minimums (when
methods "SQDIFF" or "SQDIFF_NORMED" were used) or maximums (when methods
"CCORR", "CCORR_NORMED", "CCOEFF" or "CCOEF_NORMED" were used) using the
minMaxLoc
function.