Build accurate LoG kernels for image analysis tasks. Tune sigma, spacing, size, and normalization options. Study matrix patterns, download reports, and validate filtering assumptions.
| Item | Example Value | Meaning |
|---|---|---|
| Kernel Size | 7 | Creates a 7 × 7 sampled LoG matrix. |
| Sigma | 1.20 | Larger sigma increases smoothing and widens the kernel. |
| Pixel Spacing | 1.00 | Samples coordinates one unit apart. |
| Normalization | Exact zero-sum | Forces the discrete matrix sum to exactly zero. |
| Expected Pattern | Negative center, positive ring | Typical LoG shape highlights edge transitions clearly. |
Continuous LoG Formula
LoG(x, y, σ) = A × [((x² + y²) - 2σ²) / σ⁴] × exp(-(x² + y²) / (2σ²))
Discrete Sample Coordinates
x = (column - center - offsetx) × spacing
y = (row - center - offsety) × spacing
Zero-Crossing Radius
r = √2 × σ
The calculator samples the continuous LoG function on a discrete grid. Optional normalization can enforce zero-sum balance, unit absolute sum, unit energy, or unit peak magnitude.
It combines Gaussian smoothing with a second derivative operator. This helps detect edges and blob-like structures while reducing some noise before the derivative stage.
An odd size gives the matrix a single center cell. That center is important because the LoG kernel is usually defined around a central origin point.
Larger sigma values widen the kernel and smooth more strongly. Smaller sigma values create tighter kernels that respond to finer image details.
A perfect LoG kernel should sum to zero. Discrete sampling can introduce slight imbalance, so zero-sum normalization corrects that numerical drift.
Use unit energy when you want consistent filter strength comparisons across different kernel sizes or sigma values. It normalizes the matrix using its L2 norm.
It is the radius where the continuous LoG response changes sign. In two dimensions, that radius equals √2 times sigma.
For a centered LoG kernel with positive amplitude, the origin usually produces the strongest negative value. Positive values appear farther out in a surrounding ring.
Yes. The matrix can be copied directly into convolution workflows. The export options also make it easy to store, review, and reuse generated kernels.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.