How to warp an image using deformed mesh
(1) Use cv2.copyMakeBorder to enlarge the image, to avoid the warpped points going out of range of the original image size. cv2.copyMakeBorder(…) copyMakeBorder(src, top, bottom, left, right, borderType[, dst[, value]]) -> dst . @brief Forms a border around an image. . . The function copies the source image into the middle of the destination image. … Read more