- Introduced by
- Tony Lindeberg
- Year
- 1998
- Type
- Multi-scale feature detection
- Family
- Region detection
What does it do?
Blob detection locates blobs, which are regions whose intensity or colour differs from their surroundings, and estimates the scale at which each one stands out most.
The approach follows scale-space theory, as developed in Lindeberg's work on automatic scale selection (1998), and it finds objects without a prior specification of their size. Its output is a set of blob centres, each with a characteristic scale.
The intuition behind the method
A blob is a compact region whose appearance differs from the background. Because its size is unknown in advance, the image is analysed at a range of smoothing scales. At each scale, the Laplacian of Gaussian (LoG) response is computed; it is strongest at a blob's centre when the smoothing scale roughly matches the blob's size. Points that are extrema of this response across both position and scale are taken as blob candidates, and the scale at which an extremum occurs indicates the blob's characteristic size. Depending on the sign convention, a blob may produce a local maximum or a local minimum, so the detector searches for extrema of both types.
History
Blob detection based on Laplacian of Gaussian responses is closely tied to scale-space theory. Lindeberg's 1998 paper on automatic scale selection formalised how extrema across scale can be used to select the characteristic scale of a feature. The Laplacian of Gaussian operator itself predates that work, and a single originator of the blob-detection technique is not established. The approach is used in medical imaging and microscopy for cell and lesion detection.
When to use it
Choose blob detection when the objects of interest are compact, roughly circular or elliptical regions whose size is unknown or varies within an image, and when they differ from the background in intensity or colour. Typical examples are cells in microscopy and round lesions in medical scans. Do not use it when objects are elongated, irregular or strongly textured, or when the object boundary matters more than its centre; contour-based or shape-based methods are more suitable in those cases. If the contrast between object and background is very low, the LoG responses may not separate objects from noise, and another approach should be considered.
Limitations and considerations
- The LoG response is designed for roughly circular or elliptical blobs; elongated or irregular regions produce weak or displaced extrema.
- Detection depends on contrast; low-contrast objects, or objects with internal texture, may not produce a clear extremum.
- Noise produces spurious extrema across scales, so small blobs in noisy images are especially prone to false detections.
- Fine scale sampling improves detection of intermediate sizes, but it increases the number of scales that must be processed.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Detects blobs across a range of sizes without a user-specified object size.
- Returns a characteristic scale for each detection, giving an approximate radius without a separate measurement step.
- Scale selection follows the scale-space formulation in Lindeberg (1998), which provides a principled basis for choosing the scales at which features are detected.
- The Difference of Gaussian approximation avoids computing a separate LoG at every scale, which lowers the computational cost.
Applications
- Medical image analysis: detecting tumor regions, lesions, or anatomical structures in CT or MRI scans
- Microscopy image analysis: automatically counting and characterizing cells or nuclei
- Industrial inspection: detecting circular defects or foreign objects of unknown size
- Astronomical image analysis: detecting stars or other celestial objects
How it works
How it works
Choose a set of Gaussian smoothing scales that spans the expected range of blob sizes, and build the image representation at each of those scales. The scales should be sampled finely enough that blobs of intermediate size are not skipped.
No parameters are learned in this step; it is a fixed filtering computation. Compute the scale-normalised LoG response at each pixel and each scale, that is the LoG multiplied by sigma squared, or its Difference of Gaussian approximation. Scale normalisation is needed so that responses at different scales can be compared. Bright blobs on a dark background and dark blobs on a bright background produce responses of opposite sign. Either search for extrema of both signs, or take the absolute value of the normalised response before the search. Then locate local extrema in the three-dimensional volume formed by the two image axes and the scale axis. These extrema are the blob candidates.
Read off the position and detection scale of each candidate. The blob radius can be estimated from the detection scale using the relation given in the FAQ below. Optionally, refine the location by fitting a local quadratic (parabolic) surface model around each extremum.
Apply a decision procedure to the candidates. First, reject weak extrema by applying a threshold to the scale-normalised response; the threshold value depends on the image data and must be set for the task. Second, suppress weaker responses within the neighbourhood of a stronger extremum, so that one detection remains per blob. Third, prune overlapping detections: where two detected blobs overlap strongly in position and scale, keep the stronger one. Check the remaining detections against properties such as size, contrast and spacing between blobs. Where labelled blob positions exist, match each detection to a labelled centre using a stated criterion, such as a maximum centre distance, and count correct detections, missed blobs and false detections. Set the matching tolerance from the expected object size, since it depends on the task.
Common pitfalls
- Assuming all objects are circular: elongated or complex shapes are missed, or their detected centres are misplaced.
- Using too few scales: a coarse scale grid can skip blobs whose size falls between the sampled scales.
- Comparing raw LoG responses across scales: the response amplitude changes with scale, so responses should be scale-normalised before extrema are compared across scales.
- Running the detector on unsmoothed, noisy images: smoothing before detection reduces spurious extrema, but it also blurs small blobs.
Frequently asked questions
What is the Laplacian of Gaussian (LoG) and why is it used for blob detection?
The LoG is the Laplacian (the sum of the second partial derivatives) of the Gaussian-smoothed image. It gives a strong response at blob centres and a weak response in uniform regions. The Gaussian's scale parameter (sigma) sets the size of blobs the filter responds to: a small sigma picks up small blobs and a large sigma picks up large ones. Searching for extrema across scales therefore detects blobs of different sizes.
What is the Difference of Gaussian (DoG) and how does it relate to LoG?
The DoG is the difference between two Gaussian-blurred copies of the image at neighbouring scales. It approximates the LoG and is cheaper to compute, because the blurred images can be reused across scales. The approximation is closest when the scale ratio between neighbouring levels is small, although a smaller ratio requires more scale levels to cover the same range. The ratio is a design choice in any implementation.
How is the scale of a detected blob determined?
The scale at which a blob is detected in the scale-space pyramid indicates its characteristic size. For a circular blob of radius r, the detection scale sigma is roughly r/sqrt(2). After detection, the blob radius can be estimated from the detection scale, providing size information without a separate measurement.
Can blob detection handle blobs of very different sizes in the same image?
Yes, because blob detection operates across a continuous or fine-grained scale pyramid. Both small and large blobs are detected as long as sufficient scales are sampled. For efficiency, a coarse pyramid is typically used, which may miss intermediate-sized blobs. Finer scale sampling improves detection at the cost of computation.
Related methods
Sources
Lindeberg, T. (1998). Feature detection with automatic scale selection. International Journal of Computer Vision, 30(2), 79–116.
Open DOI referenceRosten, E., & Drummond, T. (2006). Machine learning for high-speed corner detection. European Conference on Computer Vision (ECCV), 430–443.
Open DOI reference