openpiv.filters._gaussian_kernel

static filters._gaussian_kernel(size)

A normalized 2D Gaussian kernel array

Parameters :

size : int

the half width of the kernel. Kernel has shape 2*size+1

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]])

Previous topic

openpiv.filters.gaussian

Next topic

openpiv.filters.replace_outliers

This Page