Error in findtransformECC
cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria)
TypeError: Required argument 'inputMask' (pos 6) not found
cv2.findTransformECC(grad1, grad2, warp_matrix, warp_mode, criteria)
TypeError: Required argument 'inputMask' (pos 6) not found
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.
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.
Asked: 2019-05-01 08:03:18 -0600
Seen: 4,395 times
Last updated: May 01 '19
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Assertion Error in Kalman Filter python OpenCV 2.4.0
Compiling OpenCV for iOS - no product type error
Earth Mover's Distance EMD() results in memory access error
Mergevec.cpp : Error (compilation)
Mergevec.cpp possible alternative
OpenCV-2.4.2-android-sdk missing build.xml?
OpenCV on VS 2010 Express, Invalid License Data Error
RGB2Gray::operator() causing segmentation fault when using Python
Retrying to use opencv- this time 25 linker errors- win7 64bit vc10 vs2010
so the problem is: why does it think,
inputMask
is mandatory ? (it shouldn't be)