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

조회 수: 2 (최근 30일)
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