openpiv_cxx.process.get_coordinates¶
- openpiv_cxx.process.get_coordinates(image_size, window_size=32, overlap=16)¶
Get x/y coordinates of vector field.
Compute the x, y coordinates of the centers of the interrogation windows. The origin (0,0) is like in the image, top left corner positive x is an increasing column index from left to right positive y is increasing row index, from top to bottom
- Parameters:
image_size (tuple) – A two dimensional tuple for the pixel size of the image first element is number of rows, second element is the number of columns.
window_size (int) – The size of the (square) interrogation window.
overlap (int) – The number of pixel by which two adjacent interrogation windows overlap.
- Returns:
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.