scipy.ndimage.filters.generic_laplace

scipy.ndimage.filters.generic_laplace(input, derivative2, output=None, mode='reflect', cval=0.0, extra_arguments=(), extra_keywords=None)[source]

Calculate a multidimensional laplace filter using the provided second derivative function.

Parameters :

input : array-like

input array to filter

derivative2 : callable

Callable with the following signature:

derivative2(input, axis, output, mode, cval,
            *extra_arguments, **extra_keywords)

See extra_arguments, extra_keywords below.

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

extra_keywords : dict, optional

dict of extra keyword arguments to pass to passed function

extra_arguments : sequence, optional

Sequence of extra positional arguments to pass to passed function

Previous topic

scipy.ndimage.filters.generic_gradient_magnitude

Next topic

scipy.ndimage.filters.laplace