openpiv_cxx.filters.gaussian_filter

openpiv_cxx.filters.gaussian_filter(img, sigma=1.0, truncate=2.0, keep_dtype=False)

A simple sliding window gaussian low pass filter.

Parameters:
  • img (ndarray) – A two dimensional array containing pixel intenensities.

  • sigma (float) – Standard deviation of gaussian kernel.

  • truncate (float) – Truncate the kernel at specified standard deviations.

  • keep_dtype (bool) – Cast output to original dtype.

Returns:

new_img – A two dimensional array containing pixel intenensities.

Return type:

ndarray