Ask Your Question

Revision history [back]

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.