Skip to content

Instantly share code, notes, and snippets.

@nibasya
Created October 22, 2016 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nibasya/680cb83c75da1f495caa46a5dccd7a63 to your computer and use it in GitHub Desktop.
Save nibasya/680cb83c75da1f495caa46a5dccd7a63 to your computer and use it in GitHub Desktop.
matchTemplate(src, ptn, dst, CV_TM_CCOEFF_NORMED);
minMaxLoc(dst, NULL, &max_val, NULL, &max_loc);
if(max_val>0.98){ // srcとptnがほぼ一致してたら、何かする
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment