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

1 vue (au cours des 30 derniers jours)
ROHIT AILA
ROHIT AILA le 10 Oct 2016
Commenté : ROHIT AILA le 10 Oct 2016
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?

Réponses (1)

KSSV
KSSV le 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 commentaire
ROHIT AILA
ROHIT AILA le 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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by