The Laplacian of Gaussian, or LoG, combines Gaussian smoothing with a second-order derivative. It locates an edge at a zero crossing of the filtered response.

Main idea

The two LoG response lobes show the intensity transition. The zero crossing between them marks the edge position.


Processing Sequence

flowchart LR

I["Input edge"] --> G["Gaussian smoothing"]
G --> L["Laplacian response"]
L --> Z["Zero crossing<br/>edge position"]

Smoothing reduces rapid noise changes before the second derivative is measured.


Inverted Gaussian Convention

Using an inverted Gaussian sign convention:

At the centre, . At radial distance :

SymbolMeaning
Radial distance from the filter centre
Gaussian scale
Inverted Gaussian response

Laplacian of the Gaussian

The two-dimensional Laplacian is:

This response has:

  • A positive central lobe
  • Negative side lobes
  • A zero-crossing ring at radius
  • A negative ring near radius

The filter can be applied in either equivalent order:

This means that convolving with the LoG kernel is equivalent to smoothing with and then applying the Laplacian.


How an Edge Produces a Zero Crossing

A step edge gives a double-lobed LoG response:

  1. One lobe appears on one side of the intensity transition
  2. The response changes sign at the transition
  3. The second lobe appears on the other side
  4. The sign change gives the edge position

Do not select the LoG peaks as the edge position

The peaks show the two sides of the response. The zero crossing between them locates the edge.


Effect of

Choice of Main effect
Smaller Detects finer changes and retains more noise
Larger Smooths more strongly and detects structures at a coarser scale

LoG is less sensitive to noise than an unsmoothed second derivative. It still requires a suitable scale and a suitable rule for accepting zero crossings.


LoG Compared with Gradient Thresholding

MethodEdge evidenceMain strengthMain limit
[[Image Gradient and Edge DetectionPrewitt or Sobel]]Large gradient magnitudeSimple and fast
LoGZero crossing of a smoothed second derivativeSmoothing and clear edge localizationScale and zero-crossing acceptance must be selected
[[Canny Edge DetectorCanny]]Thinned gradient maxima with hysteresisProduces cleaner connected boundaries