LaplacianGaussianFilter
convolves data with a Laplacian of Gaussian kernel of pixel radius r.
convolves data with a Laplacian of Gaussian kernel of radius r and standard deviation σ.
Details and Options

- LaplacianGaussianFilter is a derivative filter that uses Gaussian smoothing to regularize the evaluation of discrete derivatives. It is commonly used to detect edges in images.
- The data can be any of the following:
-
list arbitrary-rank numerical array tseries temporal data such as TimeSeries, TemporalData, … image arbitrary Image or Image3D object audio an Audio object - LaplacianGaussianFilter[data,r] uses standard deviation
.
- LaplacianGaussianFilter[data,{{r1,r2,…},…}] specifies different radii in different dimensions of data.
- LaplacianGaussianFilter[image,…] by default gives image of a real type of the same dimensions as image.
- The following options can be specified:
-
Method "Bessel" how to determine elements of the Gaussian matrix Padding "Fixed" padding method Standardized True whether to rescale and shift the Gaussian matrix to account for truncation WorkingPrecision Automatic the precision to use - With a setting Padding->None, LaplacianGaussianFilter[data,…] normally returns an array, audio or image smaller than data.

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Scope (8)Survey of the scope of standard use cases
Data (4)
Laplacian of Gaussian filtering of a numeric matrix:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-ct07fd


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-c73fay

Filter a TimeSeries object:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-brhx0t

Filter an Audio signal:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-u9tjh0

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-c7kjgb


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-j5yrn4

Laplacian of Gaussian applied to a grayscale image:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-8b3iu3

Parameters (4)
Laplacian of Gaussian filtering of a step sequence:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-fdqmi2


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-s5zwi

Apply the Laplacian of Gaussian filter in the vertical direction only:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-bzqsge

Use different radii in the vertical direction:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-op3qwr

Laplacian of Gaussian derivative of a 3D image in the vertical direction only:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-ljvsn6

Filtering of the horizontal planes only:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-hidjao

The default standard deviation is :

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-eb87u4


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-bzh7l0

Options (7)Common values & functionality for each option
Method (1)
Padding (2)
LaplacianGaussianFilter using different padding methods:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-ggz55e

Padding->None normally returns an image smaller than the input image:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-72b2z1

Standardized (1)
The default setting is True:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-iu3mq6

Use Standardized->False:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-bxazhg

WorkingPrecision (3)
MachinePrecision is used by default with integer arrays:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-cdrg18

Perform an exact computation instead:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-jt3a9c

With real arrays, by default, the precision of the input is used:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-2q79si


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-7f69wx

WorkingPrecision is ignored when filtering images:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-pc6p9y

An image of a real type is always returned:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-o6dztt

Applications (4)Sample problems that can be solved with this function
Detect edges by finding the zero crossings of a LoG filtered image:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-e421i7

Segment an image by applying a LoG filter to the output of a distance transform:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-jouit6

Use LaplacianGaussianFilter to denoise an audio signal:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-hql8z3


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-g1tss

Get borders from a colored map:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-m7em2e

Properties & Relations (6)Properties of the function, and connections to other functions
LaplacianGaussianFilter is a linear filter:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-dktmv8

LaplacianGaussianFilter is the result of a convolution:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-uzbjxv

Perform LaplacianGaussianFilter using GaussianFilter:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-3dvv7v

Impulse responses of Laplacian of Gaussian filter for selected radii:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-n4jfuc

Impulse responses of Laplacian of Gaussian filter for selected standard deviations:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-cb3spd

Filtering of a binary image gives a real-valued image:

https://wolfram.com/xid/0bhgnqm0b13ems58he6y-fblth


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-hznxi1


https://wolfram.com/xid/0bhgnqm0b13ems58he6y-bhcy14

Wolfram Research (2008), LaplacianGaussianFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html (updated 2016).
Text
Wolfram Research (2008), LaplacianGaussianFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html (updated 2016).
Wolfram Research (2008), LaplacianGaussianFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html (updated 2016).
CMS
Wolfram Language. 2008. "LaplacianGaussianFilter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html.
Wolfram Language. 2008. "LaplacianGaussianFilter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html.
APA
Wolfram Language. (2008). LaplacianGaussianFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html
Wolfram Language. (2008). LaplacianGaussianFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html
BibTeX
@misc{reference.wolfram_2025_laplaciangaussianfilter, author="Wolfram Research", title="{LaplacianGaussianFilter}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html}", note=[Accessed: 30-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_laplaciangaussianfilter, organization={Wolfram Research}, title={LaplacianGaussianFilter}, year={2016}, url={https://reference.wolfram.com/language/ref/LaplacianGaussianFilter.html}, note=[Accessed: 30-April-2025
]}