Conceptcore
Scale space
Also called linear scale space, Gaussian scale space.
The family of images made by smoothing one image with Gaussians of growing width, so that structures of every size can be found at their own scale.
The scale space of an image is the family of smoothed images
for all scales , with . The scale is the variance of the Gaussian filter, so details smaller than about are smoothed away at scale . The family is the solution of the heat equation with as the start value. It is the only family of linear, shift invariant smoothings that has a small set of natural properties, among them that smoothing never creates new structure. Feature detectors use it to look at an image at every size at once: the DoG detector, the determinant of Hessian detector and the Harris-Laplace detector search for maxima over position and scale, and automatic scale selection says at which scale to read each feature.
In plain words
A photograph holds things of many sizes: the grain of a wall, the bricks, the windows, the whole house. Which ones matter depends on the task, and the right size is not known in advance. Scale space keeps all sizes. It makes a stack of copies of the image, each one more blurred than the one before. Small details disappear first, then larger ones. A detail that stays visible over a long part of the stack is a real structure of that size. The blur is a special one, the Gaussian, because it is the only blur that never adds new spots or edges while it removes the old ones, so every structure in a blurred copy comes from the original image.
The idea
Smoothing as a family. Let be a gray digital image, seen as a function on the plane. Take the Gaussian of variance in each direction and define . Then is a function of three variables, two of position and one of scale. The units of are pixels squared; a scale parameter in pixels is also common.
The semigroup property. Gaussians add their variances: . So the image at scale is the image at scale smoothed by , and a coarse scale can be computed from a finer one. This is what makes a Gaussian pyramid cheap: each level smooths the one before it a little more, and halves the size when doubles.
The diffusion equation. satisfies , and so does . Smoothing is diffusion of the gray values, as heat spreads in a plate. At a local maximum of in space the Laplacian is negative or zero, so the value can only fall as grows; at a local minimum it can only rise. This is the causality requirement of Koenderink: a level line at a coarse scale always comes from a level line at a finer scale.
Derivatives commute with smoothing. . So the derivatives of at scale are well defined for any image, even one with jumps, and are computed by filtering with Gaussian derivatives. This scale-space derivative is the basis of the Laplacian of Gaussian, the Harris measure, the Hessian and most detectors on this site.
Why the Gaussian. Several sets of axioms single out the Gaussian kernel. Among linear and shift invariant smoothings with the semigroup property that treat all directions and all scales alike, the Gaussian is the only one that does not create new local extrema in 1D signals (Babaud and others, 1986) or new level lines in the sense of causality (Koenderink, 1984). Iijima gave an axiomatic derivation in Japan much earlier, as Weickert and others describe. In 2D the statement must be made with care: the Gaussian does not enhance extrema, but new local extrema can appear in an image under Gaussian smoothing, as Lifshitz and Pizer observed.
Discrete scale space. On the pixel grid, the sampled Gaussian is only an approximation, and for small it is a poor one. Lindeberg derived the discrete analogue: the kernel , where is the modified Bessel function of integer order. It sums to , has the variance exactly, satisfies the semigroup property exactly, and does not create local extrema in 1D. In 2D it is used separably along rows and columns.
Examples
The two kernels at small and medium scale. The table gives the values at , the sum and the variance.
| kernel | sum | variance | |||||
|---|---|---|---|---|---|---|---|
| 0.25 | discrete | 0.7910 | 0.0981 | 0.0061 | 0.0003 | 1.0000 | 0.250 |
| 0.25 | sampled Gaussian | 0.7979 | 0.1080 | 0.0003 | 0.0000 | 1.0144 | 0.215 |
| 1 | discrete | 0.4658 | 0.2079 | 0.0499 | 0.0082 | 1.0000 | 1.000 |
| 1 | sampled Gaussian | 0.3989 | 0.2420 | 0.0540 | 0.0044 | 1.0000 | 1.000 |
At the two kernels are close and both have variance . At the sampled Gaussian does not sum to and, after normalization, has the variance instead of : it smooths less than it should.
Extrema disappear and do not appear in 1D. Take the 22 values and smooth them with the discrete kernel, with the clamp border rule. The number of strict local extrema inside the signal is:
| 0 | 0.5 | 1 | 2 | 4 | 8 | 16 | |
|---|---|---|---|---|---|---|---|
| extrema | 13 | 11 | 5 | 3 | 1 | 1 | 1 |
The count never grows. At one maximum is left, at the position of the largest mass of high values, and it stays.
A blob. A Gaussian blob has the scale space : it gets wider and lower, and its variance grows from to . Its normalized Laplacian at the center is largest at , which is how automatic scale selection finds the size of the blob.
An edge. A unit step along becomes , with the normal distribution function. The gradient at the edge is , which falls with . The product does not depend on : this is the normalized derivative with , and it shows that a perfect step has no scale of its own.
Where it is used
- Scale invariant detectors. The DoG detector of SIFT, the determinant of Hessian detector, SURF, Harris-Laplace and Hessian-Laplace all search maxima of a normalized measure in the three dimensions of scale space.
- Scale selection. Automatic scale selection chooses the scale of each feature from the scale-space derivatives.
- Pyramids. Gaussian pyramids and image pyramids sample scale space at a few scales and reduce the size of the coarse images.
- Edges and derivatives. The Canny edge detector smooths with a Gaussian of chosen scale before it takes derivatives. Derivatives at a known scale also enter optical flow, stereo and the histogram of oriented gradients.
- Nonlinear scale spaces. Anisotropic diffusion replaces the heat equation by one that smooths less across edges. KAZE features detect points in such a nonlinear scale space.
References
- Andrew P. Witkin, Scale-space filtering, Proceedings of the Eighth International Joint Conference on Artificial Intelligence (IJCAI 1983), Volume 2, 1019-1022, 1983, the scale-space image of a 1D signal and the tracking of zero crossings over scale
- Jan J. Koenderink, The structure of images, Biological Cybernetics 50(5), 363-370, 1984, the causality requirement and the diffusion equation
- Jean Babaud, Andrew P. Witkin, Michel Baudin and Richard O. Duda, Uniqueness of the Gaussian kernel for scale-space filtering, IEEE Transactions on Pattern Analysis and Machine Intelligence 8(1), 26-33, 1986, the uniqueness theorem for 1D signals
- Tony Lindeberg, Scale-Space Theory in Computer Vision, Kluwer Academic Publishers, 1994, the chapters on the axioms of linear scale space, the discrete scale-space kernel and Gaussian derivatives
- Joachim Weickert, Seiji Ishikawa and Atsushi Imiya, Linear scale-space has first been proposed in Japan, Journal of Mathematical Imaging and Vision 10(3), 237-252, 1999, the account of the axioms of Iijima
- Lawrence M. Lifshitz and Stephen M. Pizer, A multiresolution hierarchical approach to image segmentation based on intensity extrema, IEEE Transactions on Pattern Analysis and Machine Intelligence 12(6), 529-540, 1990, the discussion of extrema that appear in 2D images under Gaussian smoothing
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5F7SJW Edit this page History Report an error Markdown