Ask Your Question

Revision history [back]

matchTemplate multiple objects, false positive

Hi there!

I am using, matchTemplate without mask to match multiple objects in image with dimensions of 1600 X 900.

When those objects are presented on the image - everything works like a charm, i've found perfect tolerance after which i conclude that it is a match.

But when there are no objects - i am getting a lot of false positive matches with score of 1.0, i am using match method of TM_CCORR_NORMED, so 1.0 means perfect match, which it isn't in case when there are no objects.

Any suggestions how i can improve that?