openpiv_cxx.interpolate.taylor_expansion2D

openpiv_cxx.interpolate.taylor_expansion2D(image, yi, xi, order=1, keep_dtype=False)

Taylor expansion mapping

Perform Taylor expansions with finite differences mapping over a 2D regular mesh.

Parameters:
  • image (ndarray) – A two dimensionional array containing grey levels of an image.

  • xi (ndarray) – The x/y-coordinates at which to evaluate the interpolated values of shape (rows, cols).

  • yi (ndarray) – The x/y-coordinates at which to evaluate the interpolated values of shape (rows, cols).

  • order (int) – The order of the interpolation.

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

Returns:

img_deform – The interpolated image frame.

Return type:

ndarray