First time here? Check out the FAQ!

Ask Your Question
0

Error in findtransformECC

asked May 1 '19

nikhil5642 gravatar image

cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria)
TypeError: Required argument 'inputMask' (pos 6) not found

Preview: (hide)

Comments

so the problem is: why does it think, inputMask is mandatory ? (it shouldn't be)

berak gravatar imageberak (May 1 '19)edit

2 answers

Sort by » oldest newest most voted
1

answered May 5 '19

bbintu gravatar image

try:

(cc, warp_matrix) = cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria,None,1)

inputMask = None is accepted and ignores the inputMask (as it should by default)

You will then require an extra parameter gaussFiltSize. I set this to 1 but you might explore depending on the input images.

Preview: (hide)
-2

answered May 1 '19

supra56 gravatar image

Put parenthesis bracket. Change this:

cc, warp_matrix =cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria)

to:

(cc, warp_matrix) = cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria)

That could become 6 pos.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: May 1 '19

Seen: 4,630 times

Last updated: May 01 '19