I think the idea is to create two grids and pick the points in the first grid and transform the image to the second grid of points.
However, I have no idea what I need to do to apply warping in terms of code implementation.