opencv和pytorch中的warp操作函数:cv2.warpAffine, torch.nn.functional.grid_sample, cv2.warpPerspective
关于图像的warp操作是指利用一个旋转缩放矩阵对图像进行操作。常见的操作有,平移,绕某个点旋转,缩放。opencv中有getRotationMatrix2D,warpAffine,getAffineTransform等函数pytorch有torch.nn.functional.grid_sample用处比较多和affine_grid(theta,size,align_corners=None)函数