openpiv_cxx.windef.create_deformation_field¶
- openpiv_cxx.windef.create_deformation_field(frame, x, y, u, v)¶
Create a deformation field
Deform an image by window deformation where a new grid is defined based on the grid and displacements of the previous pass and pixel values are interpolated onto the new grid.
- Parameters:
frame (ndarray) – A two dimensional array of integers containing grey levels of an image.
x (ndarray) – A two dimensional array containing the x coordinates of the interrogation window centers, in pixels.
y (ndarray) – A two dimensional array containing the y coordinates of the interrogation window centers, in pixels.
u (ndarray) – A two dimensional array containing the u velocity component, in pixels/seconds.
v (ndarray) – A two dimensional array containing the v velocity component, in pixels/seconds.
- Returns:
x, y (ndarray) – A new grid with same dimensions as frame
u, v (ndarray) – Deformation field u/v components