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

1 回表示 (過去 30 日間)
ROHIT AILA
ROHIT AILA 2016 年 10 月 10 日
コメント済み: ROHIT AILA 2016 年 10 月 10 日
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?

回答 (1 件)

KSSV
KSSV 2016 年 10 月 10 日
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 件のコメント
ROHIT AILA
ROHIT AILA 2016 年 10 月 10 日
@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.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by