
RIDGE AND TREE FEATURE DETECTION ON IMAGES1 A. Levashov 2, D. Yurin3 2, 3 Laboratory of Mathematical Methods of Image Processing Faculty of Computational Mathematics and Cybernetics Lomonosov Moscow State University Leninskie Gory, Moscow 119991, Russia [email protected] , [email protected] In this article a new ridge detector with improved non-maxima suppression procedure in scale-space is proposed. Using the results of scale space ridge detection as primary markup the lines are prolonged up to branch points and restored in places where they are not detected. In our method the adaptive choice of threshold and flood fill are used. The algorithm is tested on synthetic, landscape and medical images. Introduction bigger scale (two times or more which leads to lines breakdown). Third, the filter response There are several major algorithms for ridge can diminish due to inconsistency between ac- detection. Apparently the first of them was the tual image structure and ridge mathematical approach [2] that does not use scale-space model, which implies: the solid color line in analysis and therefore its disadvantage is that the range of central lobe of the second deriva- it detects only thin lines. The approach [5] is tive of Gaussian function and background with based on the scale-space analysis, but it repre- another color on the sidelobes. This article is sents the theoretical basis for it and not practi- devoted to suppression of disadvantages de- cally effective algorithm. For the last 15 years scribed above. there have been only a few cases where it was used in scientific researches. The detector [3] The ridge detection based on generalization of NMS for the case of 3d scale space (x, y, t) can been seen as more In this section we shortly recall the algorithm effective for ridge detection. However one of [3], let I x, y is the intensity of input gray- this approach`s disadvantages is that it does scale image. Scale space [6] is defined as con- not detect the branch points on the lines and in volution of the image I x, y with Gaussian the adjacent areas. It interrupts the lines con- kernel: nection and significantly complicates the tree Lxyt , , Gxyt , , Ixy ( , ), structure analysis on images. The examples of x2 y 2 such tasks are masking of tree branches and 1 (1) G x,, y t e 2t ,,t 2 wires on the non-professional photos for re- 2t touching, road and river net finding on aero- We denote smoothed image L x,, y t deriva- space images for the cartographic information updating, selection of blood veins on medical tives with subscripts as LLLLLx, y , xx , xy , yy ,.... images and processing of 3D images of com- Such derivatives are equivalent to original im- puter tomography for medical diagnostic. The age I x, y convolution with appropriate de- branch points are essential for such tasks, but rivatives of Gauss function G x,, y t. By di- often the lines are not detected in the adjacent rect differentiation it is easy to check [6] that areas for several reasons. First, there is an am- scale-space representation of image L x,, y t biguity in choosing the direction for NMS pro- cedure, because the eigenvalues are almost is satisfied to diffusion equation: 1 equal. Second, in the adjacent areas two or LLL , (2) more ridges lie closely and, as a result, La- t 2 xx yy place operator can give a maximal response on where derivatives are computed at scale t . 1 The research was supported by the RFBR grant 13-07-00584. Consider the algorithm [3] for ridge detection scales. Processing such layers triplets sequen- with branch points missing. Let the thickness tially under i increasing, the local maximum of lines is fixed and equal 2 , then filter for points are collected. ridge lines finding can be the Laplace operator or maximal eigenvalue of Hessian H 22 in False detection suppression point x, y The method [3] outlined above detects also LLxx xy such features as blobs and some edges. In our H , (3) 22 approach the final results are presented in vec- LLxy yy where the derivatives are computed on scale tor form instead of bitmap. After detection of ridges their spine pixel chains are collected in 2 x, y t . In each point we have a pair of lists and the lists are united in a graph. For ex- eigenvectors: v1, v 2 , where v1 corresponds cluding blobs, the lists with small count of to eigenvalue such that and v is pixels are discarded. It is important that the 1 1 2 1 minimal count of pixels in list is proportional normal to ridge. On this basis we obtain the to the ridge (or thick line) width. That is we algorithm of ridge lines detection as local impose a constraint for minimum elongation of maxima finding task (we find directional local the blobs, which are considered as ridges. This maxima and minima of values 1 in direc- approach is differ from [3] where separation of ridges and blobs is based on ratio of eigen val- tion v1 ), i.e. we use the Non Maxima Supres- sion (NMS) procedure with 3x3 window from ues of (3). Canny edge detector. If the detection scale t For suppression of edges in [3] in NMS proce- does not equal to thickness of line, the re- dure the points are discarded if next dot prod- sponse of Laplacian (which is equal to uct is negative: g x v , g x v 0 . (5) LLL ) or eigen value is 1 1 xx yy 1 2 1 Our experiments show that condition (5) can less than that of for scale is equal to thickness. lead to erroneous discarding true ridge centers Then if we analyze the response on neighbor- for example in cases when different side’s hoods scales we can choose the optimal scale. backgrounds relatively to ridge have a differ- In scale-space the 3D Hessian is: ent average intensity. We propose the modifi- LLL xx xy xt cation of this condition: H33 LLLxy yy yt , where using (2) g x i v1 , g x i v1 Tg (6) LLL xt yt tt where i corresponds to current scale, the 1 1 (4) threshold constant satisfied the inequality: LLLLLLxt xxx xyy , yt xxy yyy , 2 2 1 Tg 0 , (7) 1 LLLLtt xxxx 2 xxyy yyyy . T 4 g (,)LLx y is the image intensity gradient. In [3] the NMS procedure was modified as fol- Adaptive flood-fill lows: the suppression is performed simultane- ously in 2 directions of 3D scale space (x,y,t) After the previous step we obtains the set of using 3x3x3 window. The directions are se- detected ridges represented as set of points lected as projections of 2 eigenvectors corre- S x j,, jl j , where x j – the coordinates sponding to 2 maximal eigenvalues of (4) on of center points of ridge lines, j – the scale, the plane normal to eigenvector v of 2D 2 at which we detect ridge point with coordi- Hessian (3). The discrete step on scales nates x , l – the response value in this point ,..., ,..., in [3] are chosen as in [7]: j j 0 i n (the response of Laplacian convolution com- 4 0 ,1 i1 i 2 . For 3D NMS procedure puted on scale j ). Using this data, we build 3 implementation it is sufficient to hold in mem- images MII,, . We set M x 1 if pixel ory only 3 layers corresponding to 3 sequential min max belongs to ridges, and M x 0 elsewhere. described, for example, in [1], and can easy be II, – additional images showing the modified for our problem by including addi- min max tional conditions for pixel filling (9), (10). available ridges points intensity range. Let ini- tially in all points M x 0 . Then for each Ridge skeletization points x j S we set The binary image M after the previous step M x j 1, Imax xj I x j 0.5 l j , will segment the image into the pixels belong- (8) ing to the ridges and the background pixels. Ix I x 0.5 l . min j j j When at branch points the ridges change their As shown in [3], the Laplacian value on scale color slightly in comparison with the back- corresponding to ridge thickness is equal to ground, the junction points will be added to difference of average intensities of background the ridges, even if they were not found by the and of ridge. scale-space detector. Further the continuous Then we make flood fill of image M . The skeletization of binary image can be applied proposed algorithm is similar to [1], but we and the skeleton can be used as the result. We use additional conditions for pixel filling. use the algorithm [9], because in our approach Consider two neighborhood pixels y k and y j - it is desirable to retain the ridge points found by scale-space detector and only add junction M y 1,M y 0 . If the condition k j and junction neighborhood ridge points as a IIImin yk yj max yk , (9) result of thinning. The algorithm of skeletiza- is satisfied, we modify the pixel y as: tion via line thinning is based on step-by-step j removing of the points which are not the cen- M y j 1, IImin yj min y k , ters in lines under additional condition that it is (10) IIy y . not ridge point obtained with scale-space de- max j max k tector.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages4 Page
-
File Size-