
International Journal of Scientific & Engineering Research, Volume 5, Issue 3, March-2014 1205 ISSN 2229-5518 Directional Derivative in Edge Detection H. Aboelsoud M. Military Technical Colleague – Egyptian Armed Forces Abstract— Step edges are localized as maxima of the gradient modulus taken in the direction of the gradient, or as zero-crossings of the Laplacian or the second directional derivative along the gradient direction. This paper shows that the step edge can be localized as a zero or positive minimum of the magnitude of the second derivative along the gradient direction, or the negative minimum of the third derivative. The results of applying the proposed methods to real images are given. The advantages and disadvantages of these methods over the classical methods are presented. Index Terms— Edge detection, Phantom edges, and Authentic edges. —————————— —————————— 1 INTRODUCTION n edge is characterized by an abrupt change in intensity This paper provides a method for localizing step edge as: A indicating the boundary between two regions in an im- 1. Zero or positive minimum of the magnitude of the se- age. It is a local property of an individual pixel and is cond derivative along the gradient direction, it is very sim- calculated from the image function in a neighborhood of the ple but also suffers from phantom edges and we provide a pixel. Edge detection is a fundamental operation in computer method for discard these phantom edges, vision and image processing. It concerns the detection of sig- 2. The negative minimum of the third derivative. nificant variations of a grey level image. The output of this This paper is arranged as follows: Section-2 gives the mathe- operation is mainly used in higher-level visual processing like matical description of the method. In Section-3, a comparative three-dimensional (3-D) reconstruction, stereo motion analy- evaluation of the method is illustrated. Finally, a conclusion is sis, recognition, scene segmentation, image compression, etc. presented in Section-4. Hence, it is important for a detector to be efficient and reliable. Edge detection has been an active research area for more ATHEMATICAL ESCRIPTION OF THE ETHOD than 45 years [1]. Several reviews of work on edge-detection 2 M D M are available in literature [2], [3], [4], [5], and [6]. Surface fit- First, let us for the purposes of clarity in our exposition ting approach for edge detection is adopted by several authors make the following lemmas: [7], [8], [9], and [10]. Bergholm’s [11] edge detector applies a Lemma 1: the first derivative operators require thinning and concept of edge focusing to find significant edges. Detectors thresholding [29]. based on some optimality criteria are developed in [12], [13], Lemma 2: the use of higher order derivatives makes the detec- and [14]. Use of statistical IJSERprocedures are illustrated in [15], tor susceptible to high frequency noise and also results in [16], and [17]. Other approaches on edge detection include the poorer localization of edges [28]. use of genetic algorithms [18], and [19], neural networks [20], Lemma 3: the contrast of an edge of a function f(x) is the mag- the Bayesian approach [21], and residual analysis-based tech- nitude of the first derivative of f(x) at the edge. niques [22], and [23]. Some authors have tried to study effect That is, )( = fxc x ,( x ∂∂= xff ) [27]. of noise in images on the performance of edge detectors [24]. Lemma 4: an edge of the smoothed intensity function f(x) is an In general, edge detection can be classified in two catego- authentic edge if f is a maximum [27]. ries: gradient operators and second derivative operators. Due x to an edge in an image corresponds to an intensity change ab- Lemma 4: an edge of the smoothed intensity function f(x) is a ruptly or discontinuity, step edge contain large first deriva- phantom edge if f x is a minimum [27]. tives and zero crossing of the second. In the case of first deriv- We start a simple model for edges, namely a step edge. Let the ative operation, edge can be detected as local maximum of the step edge at location z with step size s is denoted by f: image convolved with a first derivative operator. Prewitt, f(x) = s u (x-z) (1) Robert, Sobel [25] and Canny [12] implement their algorithms Where u(x) is the unit step function. using this idea. For the second derivative case, edges are de- The Gaussian low-pass filter g(x) is given by: tected as the location where the second derivative of the image 1 −x2 crosses zero. D. Marr and E.C. Hildreth [26] examine the zero- )x(g = e 2s2 2πs crossing of the Laplacian, and R. M. Haralick [8] examines the (2) zero-crossing of the second derivative along the gradient di- its first derivative is given by: − x −x2 rection. J. Clark [27] shows that zero-crossing methods can = 2 )x(D 3 e 2s produce phantom edges, which have no correspondence to 2πs (3) significant changes in image intensity, he provides a method Differentiation can be achieved by convolution of the signal for classifying zero-crossing edges as authentic or phantom f(x) with derivatives of this filter. The first derivative of the edges. smoothed step is: IJSER © 2014 http://www.ijser.org International Journal of Scientific & Engineering Research Volume 5, Issue 3, March-2014 1206 ISSN 2229-5518 x sider the local maxima of the gradient modulus and uses a = ∗ = − ∂ f x f(x) D(x)∫ f(z)D(x z) z non-maxima suppression followed by thresholding with hys- −∞ (4) teresis algorithms to obtain smooth and connected edge map. 2 1 x −(x − z) D. Marr and E.C. Hildreth [26] examine the zero-crossing of = ∫ su(z− z) − (x − z) 2∂z f x s π e 2s the Laplacian, and R. M. Haralick [8] examines the zero- 2 −∞ (5) crossing of the second derivative along the gradient direction. 2 s −(x − z) J. Clark [27] shows that zero-crossing methods can produce = f x e 2s2 s2 π (6) phantom edges, which have no correspondence to significant It is exactly the first derivative of a Gaussian function, in changes in image intensity, he provides a method for classify- ing zero-crossing edges as authentic or phantom edges. which the peak is located at z, and the amplitude is propor- The proposed method examines the zero or the positive tional to s, the size of the step. minimum of the magnitude of the second derivative, and the The second derivative of the smoothed step is: 2 negative minimum of the third derivative as follows: − s −(x − z) Method 1: = (x− z) 2 f xx 3 e 2s s2 π (7) In this method, the edge is localized as the zero or the positive its magnitude is: minimum of the magnitude of the second directional deriva- 2 tive, so, the method is process to search for the pixels which s −(x − z) = (x− z) 2 are not zero or positive minimum and discard them from the f xx 3 e 2s s2 π (8) magnitude of the first derivative of the smoothed signal (con- The zero-crossing in f and f is located at z, the peak and trast, (lemma 3)). This procedure is seem to be similar to the xx xx process of non-maxima suppression, which is used in methods valley are at a distance of s on either side of z, where there which localized edges as maxima in the magnitude of the first are two peaks in also at a distance of s on either side of z. f xx derivative of the smoothed signal to determine where the The third derivative of the f(x) is: maxima occurs. The output of this process may contain phan- 2 tom edges, this is due to that these zeros occur at both maxima s (x− z)2 −(x − z) (9) = − f xxx 1e 2s2 and minima of the first derivative [27]. So, the procedure is s3 π s2 2 continued to classify the edges as authentic or phantom edges. −s . This requires the use of lemma 4, and 5. Lemma 4 defines an at x = z, f has a negative minimum equal to 3 xxx s2 π authentic edge as an edge for which the magnitude of the first The first, second, and third derivatives of f(x) are depicted in derivative is a maximum. This equivalent to requiring the fol- figure1. lowing condition be true [27]: ∂f ∂3f < 0 3 ∂x ∂x (10) IJSERSimilarly, a phantom edge is indicated if: ∂f ∂3f > 0 ∂ ∂ 3 x x (11) ∂f ∂3 f if = 0 , we say there is no edge, as either the con- ∂x ∂x3 3 ∂ ∂ f trast f is zero or is zero, in which case we do not 3 ∂x ∂x ∂ 2 f have a zero or positive minimum of . ∂x2 Fig. 1: (a) Step edge, (b) First derivative, (c) Second derivative, Advantages and disadvantages: (d) Magnitude of second derivative, (e) Third derivative 1- The advantage of this method over the gradient methods is that there is no need to use the gradient direction as in From Fig. 1, the step edge can be localized as: the gradient methods which may cause an error in esti- 1. Maxima of the first derivative taken in the direction of the mating this direction. The disadvantages are that the use gradient or the gradient modulus, of higher order derivatives may results in poorer localiza- 2. Zero-crossings of the Laplacian or the second directional tion of edges (lemma 2), and, this method requires two derivative along the gradient direction, thresholds, this is due to that there may be phantom edges 3.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages5 Page
-
File Size-