Skip to content

Commit 27a8b89

Browse files
committed
fix order of argument preventing issue with mask
1 parent 2de5314 commit 27a8b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MTM/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def computeScoreMap(template, image, method=cv2.TM_CCOEFF_NORMED, mask=None):
7878

7979

8080
# Compute correlation map
81-
return cv2.matchTemplate(template, image, method, mask=mask)
81+
return cv2.matchTemplate(image, template, method, mask=mask)
8282

8383

8484
def findMatches(listTemplates, image, method=cv2.TM_CCOEFF_NORMED, N_object=float("inf"), score_threshold=0.5, searchBox=None):

0 commit comments

Comments
 (0)