Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

matchTemplate determine match

I am looking for a way to determine if a match was found, when calling this function:

Mat result;

matchTemplate(frame, template_img, result, CV_TM_SQDIFF_NORMED);

I have seen many examples of receiving a match drawing a square over the matched area and displaying it. I just want to know if it matched in a Boolean sense (Yes it matched, No it didn't)