ArticleslgStudy

computer science

Blob detection

Blob detection is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Blob detection rather than just read about it. In short: In computer vision and image processing, blob detection methods are aimed at detecting regions in a digital image that differ in properties, such as brightness or color, compared to surrounding regions. Informally, a blob is a region of an image in which some properties are constant or approximately constant; all the points in a blob can be considered in some sense to be similar to each other.

Key takeaways

  • Blob detection belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Blob detection to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Blob detection from memory before moving on to harder problems.

Reference excerpt

In computer vision and image processing, blob detection methods are aimed at detecting regions in a digital image that differ in properties, such as brightness or color, compared to surrounding regions. Informally, a blob is a region of an image in which some properties are constant or approximately constant; all the points in a blob can be considered in some sense to be similar to each other. The most common method for blob detection is by using convolution. Given some property of interest expressed as a function of position on the image, there are two main classes of blob detectors: (i) differential methods, which are based on derivatives of the function with respect to position, and (ii) methods based on local extrema, which are based on finding the local maxima and minima of the function. With the more recent terminology used in the field, these detectors can also be referred to as interest point operators, or alternatively interest region operators (see also interest point detection and corner detection). There are several motivations for studying and developing blob detectors. One main reason is to provide complementary information about regions, which is not obtained from edge detectors or corner detectors. In early work in the area, blob detection was used to obtain regions of interest for further processing. These regions could signal the presence of objects or parts of objects in the image domain with application to object recognition and/or object tracking. In other domains, such as histogram analysis, blob descriptors can also be used for peak detection with application to segmentation. Another common use of blob descriptors is as main primitives for texture analysis and texture recognition. In more recent work, blob descriptors have found increasingly popular use as interest points for wide baseline stereo matching and to signal the presence of informative image features for appearance-based object recognition based on local image statistics. There is also the related notion of ridge detection to signal the presence of elongated objects.

The Laplacian of Gaussian One of the first and also most common blob detectors is based on the Laplacian of the Gaussian (LoG). Given an input image f(x,y), this image is convolved by a Gaussian kernel

g(x,y,t)=12πte−x2+y22t at a certain scale t to give a scale space representation L(x,y;t) =g(x,y,t)∗f(x,y). Then, the result of applying the Laplacian operator

∇2L=Lxx+Lyy is computed, which usually results in strong positive responses for dark blobs of radius r2=2t (for a two-dimensional image, r2=dt for a d-dimensional image) and strong negative responses for bright blobs of similar size. A main problem when applying this operator at a single scale, however, is that the operator response is strongly dependent on the relationship between the size of the blob structures in the image domain and the size of the Gaussian kernel used for pre-smoothing. In order to automatically capture blobs of different (unknown) size in the image domain, a multi-scale approach is therefore necessary. A straightforward way to obtain a multi-scale blob detector with automatic scale selection is to consider the scale-normalized Laplacian operator

∇norm2L=t(Lxx+Lyy) and to detect scale-space maxima/minima, that are points that are simultaneously local maxima/minima of ∇norm2L with respect to both space and scale (Lindeberg 1994, 1998). Thus, given a discrete two-dimensional input image f(x,y) a three-dimensional discrete scale-space volume L(x,y,t) is computed and a point is regarded as a bright (dark) blob if the value at this point is greater (smaller) than the value in all its 26 neighbours. Thus, simultaneous selection of interest points (x̂,ŷ) and scales t̂ is performed according to

(x̂,ŷ;t̂)=argmaxminlocal(x,y;t)((∇norm2L)(x,y;t)). Note that this notion of blob provides a concise and mathematically precise operational definition of the notion of "blob", which directly leads to an efficient and robust algorithm for blob detection. Some basic properties of blobs defined from scale-space maxima of the normalized Laplacian operator are that the responses are covariant with translations, rotations and rescalings in the image domain. Thus, if a scale-space maximum is assumed at a point (x0,y0;t0) then under a rescaling of the image by a scale factor s, there will be a scale-space maximum at (sx0,sy0;s2t0) in the rescaled image (Lindeberg 1998). This in practice highly useful property implies that besides the specific topic of Laplacian blob detection, local maxima/minima of the scale-normalized Laplacian are also used for scale selection in other contexts, such as in corner detection, scale-adaptive feature tracking (Bretzner and Lindeberg 1998), in the scale-invariant feature transform (Lowe 2004) as well as other image descriptors for image matching and object recognition. The scale selection properties of the Laplacian operator and other closely scale-space interest point detectors are analyzed in detail in (Lindeberg 2013a). In (Lindeberg 2013b, 2015) it is shown that there exist other scale-space interest point detectors, such as the determinant of the Hessian operator, that perform better than Laplacian operator or its difference-of-Gaussians approximation for image-based matching using local SIFT-like image descriptors.

The difference of Gaussians approach

From the fact that the scale space representation L(x,y,t) satisfies the diffusion equation

∂tL=12∇2L it follows that the Laplacian of the Gaussian operator ∇2L(x,y,t) can also be computed as the limit case of the difference between two Gaussian smoothed images (scale space representations)

∇norm2L(x,y;t)≈tΔt(L(x,y;t+Δt)−L(x,y;t)). In the computer vision literature, this approach is referred to as the difference of Gaussians (DoG) approach. Besides minor technicalities, however, this operator is in essence similar to the Laplacian and can be seen as an approximation of the Laplacian operator. In a similar fashion as for the Laplacian blob detector, blobs can be detected from scale-space extrema of differences of Gaussians—(Lindeberg 2012, 2015) for the explicit relation between the difference-of-Gaussian operator and the scale-normalized Laplacian operator. This approach is for instance used in the scale-invariant feature transform (SIFT) algorithm—(Lowe 2004).

The determinant of the Hessian By considering the scale-normalized determinant of the Hessian, also referred to as the Monge–Ampère operator,

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Blob detection

Start with the simplest possible case. Write down what Blob detection claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Blob detection before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Blob detection ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Blob detection

In research
Blob detection appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Blob detection in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Blob detection is common in secondary-school and first-year university syllabi. It links to neighbouring topics Feature detection (computer vision), so understanding it makes those chapters shorter.
In everyday life
Look for Blob detection outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Blob detection” →

How to study Blob detection in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Blob detection means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Blob detection out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Blob detection in simple terms?

In computer vision and image processing, blob detection methods are aimed at detecting regions in a digital image that differ in properties, such as brightness or color, compared to surrounding regions. Informally, a blob is a region of an image in which some properties are constant or approximatel…

Why does Blob detection matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Blob detection?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Blob detection.

Tags

  • Feature detection (computer vision)

Keep exploring