Homography Estimation That Transforms an Image to Model Soccer Field with warpPerspective Implementation
App uses model soccer field image as base image. Then estimates homography matrix and warps perspective. While warping perspective interpolates the image. To interpolate; first uses np.linspace() to create evenly spaced sample number (dimension times).
Then uses np.meshgrid(xVector, yVector) to return coordinate matrices from coordinate vectors.
At the end it uses scipy.interpolate.griddata() to interpolate with Nearest-neighbor interpolation method.