scipy.ndimage.filters.laplace

scipy.ndimage.filters.laplace(input, output=None, mode='reflect', cval=0.0)[source]

Calculate a multidimensional laplace filter using an estimation for the second derivative based on differences.

Parameters :

input : array-like

input array to filter

output : array, optional

The output parameter passes an array in which to store the filter output.

mode : {‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, optional

The mode parameter determines how the array borders are handled, where cval is the value when mode is equal to ‘constant’. Default is ‘reflect’

cval : scalar, optional

Value to fill past edges of input if mode is ‘constant’. Default is 0.0

Previous topic

scipy.ndimage.filters.generic_laplace

Next topic

scipy.ndimage.filters.maximum_filter