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

4 Ansichten (letzte 30 Tage)
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?

Antworten (1)

KSSV
KSSV am 10 Okt. 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 Kommentar
ROHIT AILA
ROHIT AILA am 10 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by