Ask Your Question
0

Error in findtransformECC

asked 2019-05-01 08:03:18 -0600

nikhil5642 gravatar image

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

edit retag flag offensive close merge delete

Comments

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

berak gravatar imageberak ( 2019-05-01 08:28:49 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2019-05-05 08:13:06 -0600

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.

edit flag offensive delete link more
-2

answered 2019-05-01 13:19:19 -0600

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-05-01 08:03:18 -0600

Seen: 4,027 times

Last updated: May 01 '19