OpenCV warpAffine and inverse warpAffine inconsistence
问题 I'm using the OpenCV warpAffine function to do some image processing. The weird thing is that I found after applying a warpAffine and then an inverse warpAffine. The processed image is inconsistent with the original image, where there is one-pixel border padding at the bottom. img_path = '140028_199844.jpg' img = cv2.imread(img_path,cv2.IMREAD_COLOR) plt.imshow(img[:,:,::-1]) h,w,_=img.shape # h=220 w=173 src = np.array([[ 86., 109.5], [ 86. , 0. ], [-23.5, 0. ]]) dst = np.array([[192., 192.]