openpiv.filters._gaussian_kernel
- openpiv.filters._gaussian_kernel(half_width: int = 1) ndarray [source]
A normalized 2D Gaussian kernel array
- Parameters
half_width (int) – the half width of the kernel. Kernel has shape 2*half_width + 1 (default half_width = 1, i.e. a Gaussian of 3 x 3 kernel)
Examples
>>> from openpiv.filters import _gaussian_kernel >>> _gaussian_kernel(1) array([[ 0.04491922, 0.12210311, 0.04491922], [ 0.12210311, 0.33191066, 0.12210311], [ 0.04491922, 0.12210311, 0.04491922]])