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 :
| Symbol | Meaning |
|---|---|
| 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:
- One lobe appears on one side of the intensity transition
- The response changes sign at the transition
- The second lobe appears on the other side
- 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
| Method | Edge evidence | Main strength | Main limit |
|---|---|---|---|
| [[Image Gradient and Edge Detection | Prewitt or Sobel]] | Large gradient magnitude | Simple and fast |
| LoG | Zero crossing of a smoothed second derivative | Smoothing and clear edge localization | Scale and zero-crossing acceptance must be selected |
| [[Canny Edge Detector | Canny]] | Thinned gradient maxima with hysteresis | Produces cleaner connected boundaries |