{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / filters / edges / laplace

function

skimage.filters.edges:laplace

source: /dev/scikit-image/src/skimage/filters/edges.py :680

Signature

def   laplace ( image ksize = 3 mask = None )

Summary

Find the edges of an image using the Laplace operator.

Parameters

image : ndarray

Image to process.

ksize : int, optional

Define the size of the discrete Laplacian operator such that it will have a size of (ksize,) * image.ndim.

mask : ndarray, optional

An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result.

Returns

output : ndarray

The Laplace edge map.

Notes

The Laplacian operator is generated using the function skimage.restoration.uft.laplacian().

Aliases

  • skimage.filters.laplace