openpiv_cxx.interpolate.whittaker2D¶
- openpiv_cxx.interpolate.whittaker2D(image, yi, xi, radius=3, keep_dtype=False)¶
Whittaker-Shanon (sinc) mapping
Perform Whittaker-Shannon 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).
radius (int) – The radius of the Whittaker interpolation kernel. Optimal radii is 3 and 5.
keep_dtype (bool) – Whether to cast the output to the original dtype or not.
- Returns:
img_deform – The interpolated image frame.
- Return type:
ndarray
References
- [1] Wikipedia contributors. (2022, March 18). Whittaker-Shannon
interpolation formula. In Wikipedia, The Free Encyclopedia. Retrieved June 30, 2022, from https://en.wikipedia.org/w/index.php?title=Whittaker%E2%80%93Shannon_interpolation_formula&oldid=1077909297