I am trying to implement a algorithm for rolling shutter distortion removal based on curve interpolation, that I have seen in an paper (https://ieeexplore.ieee.org/document/6311354). This algorithm includes calculating a new x- and y-coordinate for each pixel in the source-image. Now I have to resample the created irregular grid of pixels to a regular grid, but I do not know how to do that. I only know how Target-to-Source Mapping works. But I can't use that beacuse I can't simply invert the process, that creates the irregular grid of pixels, since every pixel is computed individually.
