Abstract
Edge detection is a basic operation in the field of image processing and computer vision. However, to the best of our knowledge, there is less mathematical work has been proposed beyond the first- and the second-order derivative operator for edge detection in the past decays. We propose a mathematical model called Lagrange detector for edge detection. Based on Lagrange polynomial interpolation theory, this detector calculates Lagrange remainder as the strength of edge and points at the features in various orders of discrete data or signal. Lagrange remainder combines the first-order derivation and the first- and second-order derivative of neighborhood by multiplication. We use the truncation error of polynomial interpolation to estimate Lagrange remainder. Lagrange detector performs well in detecting both outlines and tiny details. Furthermore, Lagrange detector can be used to detect high-frequency information like as corner, point, Moiré pattern and etc. The research of Lagrange detector opens an new window for low level image processing, and will be used as the basis for further studies on image processing.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Edge detection is a first-step operation used in image processing and computer vision applications, resulting in significantly reducing the amount of data, filtering out useless information and preserving the important structural properties in an image. Edge detection refers to the process of identifying and locating sharp discontinuities in an image. The discontinuities are obviously changes in pixel intensity which characterize boundaries of objects in a scene.
This field possesses many mathematical models, including Sobel operator, Roberts operator, Prewitt operator, Laplace operator, LoG detector [1], Canny detector [2] and etc. [3]. These operators are based on first-order derivative or second-order derivative. The methods based on first-order derivative detect edges by first computing a measure of edge strength, usually first-order derivative expression such as the gradient magnitude, and then searching for local directional maxima of the gradient magnitude using a computed estimate of the local orientation of the edge, usually the gradient direction. The methods based on second-order derivative detect edges by searching for zero crossings in a second-order derivative expression, usually the zero-crossings of the Laplace operator or the zero-crossings of a non-linear differential expression.
Many methods and techniques have been developed based on these mathematical theories. Data driven methods is the newly and hottest studies, by learning the possibility distributions of features, including methods based on CNN [4]. However, to the best of our knowledge, there is less mathematical work has been proposed beyond the first- and the second-order derivative operator for edge detection in the past decays.
We propose a mathematical theory called Lagrange detector, which is the Lagrange form of the remainder of Taylor’s theorem. Polynomial interpolation theory provides basis for the calculation of Lagrange reminder. Lagrange detector identifies the high-order components in images, charactering, extracting and processing points that present edges or curves.
2 Related Work
2.1 Edge Detection
Edge detection aims at capturing boundaries and curves by detecting sharp changes in image brightness. All of mathematical operators detecting edge are based on first-order derivative or second-order derivative. Essentially we need to get the extremum value of brightness variations that is the first-order derivative. The methods based on calculating the second-order derivative are just to get the extremum point of first-order derivative [3] (Fig. 1).
2.2 First-Order Methods
The methods based on first-order derivative include Sobel operator, Roberts operator, Prewitt operator and Canny detector. One of them Sobel operator has concise mathematical expressions and Canny detector uses Sobel operator as pretreatment. So we mainly explore the mathematical theory of Sobel operator [3].
Sobel operator has clear and definite mathematical expressions. Sobel operator is defined as
where \( d_{x} \) is the gradient in x, \( d_{y} \) is the gradient in y.
Practically we use two \( 3 \times 3 \) matrices to calculate the differences \( \Delta _{\text{x}} ,\Delta _{\text{y}} \) as approximate the values of \( {\text{d}}_{\text{x}} \), \( {\text{d}}_{\text{y}} \). We have that
where A is the data matrix of the image. While the gradient orientation can be estimated as
2.3 Second-Order Methods
The methods based on second-order derivative include Laplace operator and LoG detector. Laplace operator also has clear and definite mathematical expressions [3]. LoG detector combines Laplace operator and Gaussian filter [1].
Laplace operator is defined as
We also use a 3 × 3 matrix to calculate the second-order difference as the value of \( \nabla^{2} f\left( {x,y} \right) \). So we have
where A is the data matrix of the image.
3 Lagrange Detector
Lagrange detector is the Lagrange form of the remainder of Taylor’s theorem. The reminder can be calculated via the difference between the polynomial interpolation and the true value. For polynomial interpolation, Lagrange Polynomial is
where \( l_{k} \left( x \right) = \mathop \prod \limits_{j = 0, j \ne k}^{n} \frac{{x - x_{j} }}{{x_{k} - x_{j} }}\left( {{\text{k}} = 0,{ 1},{ 2}, \, \ldots ,{\text{ n}}} \right) \), given \( \left( {x_{i} , f(x_{i} )} \right) \) \( \left( {{\text{i}} = 0, 1, 2, \ldots , {\text{n}}} \right) \). The Lagrange remainder is
where \( \forall x \in \left( {a,b} \right), f^{{\left( {n + 1} \right)}} \left( x \right) {\text{exists}}, \exists \epsilon \,\, \in \left( {a,b} \right) {\text{makes}} \) the formula (8) be workable [5,6,7]. We have proved that \( R_{n} \) has obviously positive correlation with signal frequency. So we are able to use \( R_{n} \) to characterize and extract the high-frequency components. After attaining the high-frequency data, we can do the works well about detecting edge, corner, point, Moiré pattern [8] and etc.
3.1 1D Signal
From Taylor’s Formula, a 1-dimension signal \( \varvec{S}({\text{t}}) \) can be decomposed into a set of polynomial expressions:
with \( \varvec{S}^{\left( n \right)} (t_{0} ) \) is the n-order derivative of \( \varvec{S}\left( {\text{t}} \right) \) in \( t = t_{0} \) and \( \varvec{S}^{\left( n \right)} (t_{0} ) \) exists. The Lagrange remainder during Lagrange polynomial interpolation is
In \( t \in {\mathbf{R}} \) and \( \epsilon \,\, \in (\varvec{min}\left( {t,t_{0} , \ldots ,t_{n} } \right),\varvec{max}\left( {t,t_{0} , \ldots ,t_{n} } \right)) \), the n + 1-order derivative of \( \varvec{S}\left( {\text{t}} \right) \) exists. When n = 1, the remainder is
We take three adjacent points as subject investigated. By linear interpolation with points on side, we get the valuation of the middle point. Figure 2 indicates that errors are significantly different between edges and smooth parts. The truncation error δ:
We take the difference between true value and interpolation value as
We can use \( diff \) to detect edges and curves. The method is the formula (13).
3.2 Experiment on 1D Signals
Exp.01:
We take \( \sin (2\pi \omega t) \) as source signal and \( \omega_{s} = 100.0 \) as sampling rate. In an interval \( \upomega \in [1, 9] \), we calculate \( \overline{\delta } \) by the formula (13) and get the relationship curves of \( \overline{\delta } \) and \( \upomega \). The results follow as Fig. 3. When \( \omega \) is larger, the feature of edges is more obvious.
3.3 Experiments on 2D Signals
Exp. 02:
Use a Gabor filter [9] to get the source image that is Fig. 4(a). After processing this image by l = 1 Lagrange detector, we get the result Fig. 4(b). To give firm analyses, we calculate \( \overline{\delta } \) that is the average of \( \varvec{diff}_{{{\mathbf{2}}\varvec{D}}} \). Figure 4(b) indicates the relation of \( \overline{\delta } \) and the frequency. The results indicate that our approach is an isotropy detector.
Figure 4(b) indicates Lagrange detector has the feature of isotropy on capturing edges, so we can just take one direction to contrast results of using Sobel operator, Laplace operator and Lagrange detector to process these images. Follow as Fig. 5:
4 Lagrange Detector Processes Images to Capture Edges
4.1 Approach Description
After above all the analyses and experiments, we have the approach (Fig. 6):
4.2 Experimental Results
We perform some tests for making comparison between different edge detectors and Lagrange detector on the images, of which from left to right 1 is from MCM dataset [10], 2 is from Kodak dataset [11], 3 is from Sandwich dataset [12], 4 is from McGill dataset [13] and 5 is standard Lena image. The results are Fig. 7. Canny detector and LoG detector have been developed for many years, improved by researchers and developer for lots of times. So they perform well in presenting edges by curves, which means their strategies at processing the data from Sobel operator or Laplace operator. To a certain extent, Lagrange detector performs well in both outlines and tiny details.
5 Lagrange Detector Analysis and Conclusion
We propose a novel mathematical theory named Lagrange detector for edge detection. Based on Lagrange polynomial interpolation theory, this detector takes Lagrange remainder as an operator. The formulas (12) and (13) are the mathematical basis of detecting edges. By combining the first-order derivative and the second-order derivative, Lagrange detector can filter smooth components to some extent and capture as much edge information that change sharply as possible.
Like as Sobel operator and Laplace operator, Lagrange detector also has solid and definite mathematical expression shown in formula (2). While used to detect edge, Lagrange detector can presented as formula (12). At this case, the expression of Lagrange detector is equivalent to the truncation error \( \varvec{S}^{\prime\prime} \left( \epsilon \right) \), which is the second-order derivation of neighborhood. Lagrange detector includes the characteristics of the first-order derivative and the second-order derivative. The distinction between traditional edge detection operators and Lagrange detector is that the traditional operators aim at get the extremum value of brightness variations that is the first-order derivative, but Lagrange detector uses Lagrange remainder to combine the first-order derivation and the first- and second-order derivative of neighborhood by multiplication. By calculating the truncation error of polynomial interpolation, we can estimate Lagrange remainder. Lagrange detector performs well in detecting both outlines and tiny details.
Lagrange detector provides a new theoretical approach for edge detection, which open a new window for low level image processing, and will be used as the basis for further studies on image processing.
References
Marr, D., Hildreth, E.: Theory of edge detection. Proc. Roy. Soc. London Ser. B Biol. Sci. 207, 187–217 (1167). https://doi.org/10.1098/rspb.1980.0020
Canny, J.: A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 8, 679–714 (1986)
Saket, B., Ajay, M.: A survey on various edge detector techniques. Procedia Technol. 2, 220–226 (2012). Elsevier
Liu, Y., Cheng, M.M.: Richer convolutional features for edge detection. In: CVPR (2017)
Meijering, E.: A chronology of interpolation: from ancient astronomy to modern signal and image processing. Proc. IEEE 90(3), 319–342 (2002)
Jean-Paul, B., Lloyd, N.: Barycentric lagrange interpolation. SIAM Rev. 46(3), 501–517 (2004)
Nicholas, J.: Highman.: the numerical stability of barycentric lagrange interpolation. IMA J. Numer. Anal. 24(4), 547–556 (2004)
Moiré pattern. https://en.wikipedia.org/wiki/Moiré_pattern
Movellan, J.R.: Tutorial on Gabor Filters. Archived from the original on 19 April 2009. Accessed 14 May 2008
Acude-images. http://www.eecs.qmul.ac.uk/~phao/CFA/acude/IMAX/rad-n5-images/
Kodak Lossless True Color Image Suite. http://r0k.us/graphics/kodak/
Meiqing, Z., Linmi, T.: A Patch Aware Multiple Dictionary Framework for Demosaicing (ACCV 2014), Singapore, 1–5 November 2014
McGill Calibrated Colour Image Database. http://tabby.vision.mcgill.ca/
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Ma, F., Tao, L., Xia, W. (2017). Lagrange Detector in Image Processing. In: Zhao, Y., Kong, X., Taubman, D. (eds) Image and Graphics. ICIG 2017. Lecture Notes in Computer Science(), vol 10668. Springer, Cham. https://doi.org/10.1007/978-3-319-71598-8_10
Download citation
DOI: https://doi.org/10.1007/978-3-319-71598-8_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-71597-1
Online ISBN: 978-3-319-71598-8
eBook Packages: Computer ScienceComputer Science (R0)