Data Science, Data Engineer, Computer Vision, API, Solid State Physics.
number_of_iterations, termination_eps) _, warp_matrix = cv2.findTransformECC(gray1, gray2, warp_matrix, warp_mode, criteria) aligned_image = cv2.warpAffine(image1, warp_matrix, (image2.shape[1], image2.shape[0]), flags=cv2.INTER_LINEAR + cv2.WARP_INVERSE_MAP) return aligned_image def