Search code examples
pythonscipyinterpolationbilinear-interpolationquadrilaterals

Bilinear interpolation on quadrilateral


I am interpolating data from the vertices of a quadrilateral to any random point inside the quadrilateral. I implement this by first doing a coordinate transformation which reshapes the quadrilateral to a unit square and then using bilinear interpolation. Does any of the python libraries already have an implementation to do this?


Solution

  • Based on this answer, scipy.interpolate.bisplrep does the job for me.