openpiv.pyprocess.get_field_shape

openpiv.pyprocess.get_field_shape(image_size: Tuple[int, int], search_area_size: Tuple[int, int], overlap: Tuple[int, int]) → Tuple[int, int][source]

Compute the shape of the resulting flow field.

Given the image size, the interrogation window size and the overlap size, it is possible to calculate the number of rows and columns of the resulting flow field.

Parameters:
  • image_size (two elements 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, easy to obtain using .shape
  • search_area_size (tuple) – the size of the interrogation windows (if equal in frames A,B) or the search area (in frame B), the largest of the two
  • overlap (tuple) – the number of pixel by which two adjacent interrogation windows overlap.
Returns:

field_shape – the shape of the resulting flow field

Return type:

2-element tuple