openpiv_cxx.interpolate.bilinear2D

openpiv_cxx.interpolate.bilinear2D(x, y, z, xi, yi, keep_dtype=False)

2-D bilinear interpolation over a regular grid.

Parameters:
  • x (ndarray) – The x and y-coordinates in strictly ascending order which to evaluate the interpolated values.

  • y (ndarray) – The x and y-coordinates in strictly ascending order which to evaluate the interpolated values.

  • z (ndarray) – A two dimensionional array.

  • xi (ndarray) – The x and y-coordinates at which to evaluate the interpolated values.

  • yi (ndarray) – The x and y-coordinates at which to evaluate the interpolated values.

  • keep_dtype (bool) – Whether to cast the output to the original dtype or not.

Returns:

z_deform – The interpolated array.

Return type:

ndarray

References

[1] Wikipedia contributors. (2022, April 10). Bilinear interpolation. In Wikipedia, The Free Encyclopedia. Retrieved April 1, 2022, from https://en.wikipedia.org/wiki/Bilinear_interpolation