
Scale-Space Color Blob Detection Ekaterina V. Semeikina, Dmitry V. Yurin Department of Computational Mathematics and Cybernetics Moscow State University, Moscow, Russia [email protected], [email protected] dependent on second image derivatives. In this paper two variants Abstract of color blob detection are proposed. In our method sizes of blobs are defined adaptively in scale-space. We know the only work [9] Feature detection in color images frequently consists in image on color blob detection, comparative discussion of the proposed conversion from color to grayscale and then application of one of method and [9] will be given. Also comparison with detection in many known grayscale detectors. This approach has a few disad- converted to grayscale images is presented. vantages: some features become indistinguishable in grayscale and features ordering based on grayscale detector response do not 2. SCALE-SPACE accord with features order of importance from human’s percep- tion point of view. In this paper the method for direct detection of Blobs in image can be described using derivatives of an image blobs in color images is proposed. The proposed algorithm is brightness function. However, the input image I x, y is given at based on scale space approach and estimates blobs sizes. Two modifications of the proposed method are given and compared. discrete pixel mesh in the plane x, y . Scale-space theory [7] proposes to use instead discrete image I x, y its version Keywords: color blob detection, feature points, scale-space, hes- sian matrix. L x,, y t blurred with the Gaussian kernel G x,, y t : Lxyt(,,)(,,)(,) Gxyt Ixy , 1. INTRODUCTION 1 2 2 2 where G(,,) x y t ex y 2 , t 2 (1) Point and linear feature detection is a base problem of image mo- 2 2 saicing, image registration, 3D recovery, pattern recognition, and scene analysis. It has been shown [8] that blobs are the most ap- Blurred function L x,, y t is infinitely differentiable. Using propriate point features for the applications which need feature convolution properties the derivatives of L x,, y t can be cal- matching. In contrast to corners [4], blobs [8] have more stable culated via convolution of I x, y with the corresponding deriva- location and size. The algorithm for color blob detection will be proposed in the paper. tives of Gauss function. Thus image derivatives depend on the 2 Feature detection in color images often consists of conversion blurring parameter t called scale [7]. from color to grayscale mode and application of one of grayscale In blob detection there is no a priory known scale, which should detectors. This approach has disadvantages described below. be used for derivatives calculation. A blob should be detected at Most of feature detectors [1, 4, 11] consist of three steps. The first the scale where it is visible better. Such scale is proportional to of them is application of some transform to image in order to the blob size. This leads to consideration of one-dimensional fam- construct Feature Response Image (FRI). Typical examples of ily of images L x,, y t blurred with different t . FRI are gradient absolute value image (for Canny edge detection Let us notice that since Gauss function is used as the blurring [1]), difference of Gaussians (grayscale blob detection [8]), Harris kernel, then function L x,, y t satisfies diffusion equation [7]: functional (corner detection [4]). The second is extrema detection (or non maxima suppression [1]) in FRI. The third step is thresh- 1 olding or hysteresis [1]: sufficiently large extrema are considered LLLt xx yy . (2) to be features. Using of thresholds gives rise to the first argument 2 for color image analysis without conversion to grayscale: a possi- bility of feature distinguishability reduction. Equal brightness of a 3. GRAYSCALE BLOB DETECTION AT A FIXED feature and background is a rare situation, but visibility decreas- SCALE ing of some features after conversion to grayscale is typical. Let us consider Taylor series (3) of image brightness at the point For a wide class of algorithm correct feature sorting in order of x, y in order to explain popular blob [8] detection techniques their importance is significant. [5] can be considered as an exam- ples of the algorithms which estimate model parameters (homo- basics. graphy or essential matrix) using matched pairs of features from T different views. Estimation is fulfilled in two stages: using pairs T dx 1 dx dx dL x,,(,) y t0 g x y Hx, y ..., of “most important” features (with high FRI value) and refine- dy 2dy dy ment with all feature pairs. If feature ordering is not stable, sets of LL (3) most important features from different views can contain images where HHx,,, y x y t xx xy is Hessian ma- 0 of different points of 3D scene and matching will be incorrect. LLxy yy The corner [10] and edge [2, 3] detectors for color images are trix, scale t t0 is fixed. known. Unfortunately such approach is not applicable to features In the middle of a blob first derivatives (gradient) are small and T 1 the second term becomes the main. Image brightness L x,, y t c cRGB c c CC (6) 0 3 defines the surface and eigenvalues 1 , 2 (|1 | | 2 | ) of Hes- In order to form Hessian matrix, derivatives of the adaptively sian matrix characterizes curvature of this surface in direction of projected image should be constructed. Derivatives calculation in eigenvectors v1 , v2 . If both curvature values have the same sign the point xi, y i via convolution with Gaussian derivatives would and similar magnitudes then the feature is blob. Thus grayscale require forming of separate image Li , using the fixed coefficients blob detection procedure consists of FRI construction x, y 2 c xi, y i in all points of Li . and local extrema detection. L x, y c x,, y R x y In order to avoid square root calculation Laplacian (4) is fre- i R i i . (7) quently used as FRI for blob detection: cxyGxyG i,, i cxyBxyB i,, i Fortunately we can avoid building of this image set Li and cal- trace H LLxx yy 1 2 . (4) culate derivatives in all points directly from color components Another popular FRI for blob detection is determinant of Hessian derivatives: matrix det H . DLxyˆ , c xyDRxy, ˆ , R , 4. COLOR BLOB DETECTION AT A FIXED SCALE ˆ ˆ cG xyDGxy, , cB xyDBxy, , (8) ˆ 4.1 Color variation vector and Hessian matrix for where D is differentiation operator. color image Since only adaptive image derivatives are needed for blob detec- Feature detection using Hessian matrix eigenvalues cannot be tion, the proposed method does not contain image conversion directly applied to color images. Usually in order to solve this from color to grayscale. problem grayscale image is constructed as a projection of color 4.2 Detection at a fixed scale image to some direction in color space, for example, 0.299, 0.587, 0.114 . In this work we propose to select color Hessian matrix can be formed using derivatives (8). Further blob projection direction adaptively in every image point as a direction detection is analogous to detection in grayscale images using in color space of the fastest color change. eigenvalues 1 , 2 ( 1 2 ) of Hesse matrix. In order to introduce vector of the fastest color change let us ap- Let us chose threshold characterizing maximum allowed ob- ply Laplace operator to each of image color channels and let us longness of a blob. Local extrema of FRI 2 (,)x y , where introduce auxiliary vector C : 2 1 1 0 , are detected as blobs. These local extrema can 1 T CRRGGBB xx yy, xx yy, xx yy . (5) be detected via scanning by 3 3 frame and comparing central 3 pixel on FRI with its 8 neighbour pixels. In our experiments Application of the Laplace operator, i.e. convolution with second 8 have been used. derivatives of Gauss function, means difference between weighted 1 In the previous work [6] 2 (,)x y was used as FRI and local mean CRGB ,, T over the point neighbourhood of 3 maxima needed to be detected. Detection of maxima instead of maxima and minima slightly saves computation time but leads to 1 T radius r and weighted mean CRGB ,, over artifacts. 0 3 4.3 “Continuity” and “compatibility” properties outer ring neighbourhood (Figure 1). Here r0 NG , where Like classical color extensions of corner [10] and edge [2, 3] de- N is the dimensionality of used Gaussian function, in our case G tectors the proposed method obeys an important “continuity” NG 2 . So we can say that CCC is a color variation property: small changes in RGB channel values results in small vector in the feature neighbourhood. FRI changes. It also obeys property of “compatibility” with gray- scale detector: when image color components are equal: R(,)(,)(,) x y G x y B x y , (9) formulae used to construct FRI of color image come to formulae used for grayscale images. Thus the results of detection using color and grayscale algorithms are the same when (9) is true. 5. TWO VARIANTS OF SCALE-SPACE BLOB DETECTION Figure 1: Second derivative of the 1D Gauss function. Unlike edge detection, where incorrect scale selection frequently leads only to some change of the edges shape, blobs will be Direction of C is a vector of the fastest color change (6): missed if incorrect scale is used for detection. In the current sec- tion the method for scale-space detection which allows to detect Hx,, y t.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages4 Page
-
File Size-