How to use template matching to determine the best match among different templates?

2 views (last 30 days)
I want to use template matching to determine the suit of a playing card, so that i compare it to 4different templates of suit symbols and determine the best match. How is score of match computed in template matching?

Answers (1)

KSSV
KSSV on 10 Oct 2016
I guess template matching means, you will compare the present card with the other cards. And this boils down to comparing two images. You can compare two images using imshowpair(), imabsdiff(),corr2(). I suggest you to read the documentation part of above functions.
  1 Comment
ROHIT AILA
ROHIT AILA on 10 Oct 2016
@Siva What you said is right. But in my problem, i will make use of normxcorr2 to find matches in two images. But i would do that with my input image to 4 different suits. I want to find the best match among these. I have read the documentation to those functions. I know what they do. But this is a difficult problem that i am talking about. Only the ones who tried to do it would understand.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!