Elsevier

Optics Communications

Volume 353, 15 October 2015, Pages 147-157
Optics Communications

A convenient and robust edge detection method based on ant colony optimization

https://doi.org/10.1016/j.optcom.2015.05.019Get rights and content

Highlights

  • A convenient and robust ACO-based edge detection method is proposed.

  • A new heuristic function is devised to detect more edge points.

  • A user-defined threshold in the pheromone update process is adopted.

  • For ease of use, a group of suitable parameter values are provided.

Abstract

Edge detection is usually used as a preprocessing operation in many machine vision industrial applications. Recently, ant colony optimization (ACO) as a relatively new meta-heuristic approach has been used to tackle the edge detection problem. In this work, a convenient and robust method for edge detection based on ACO is proposed, which employs a new heuristic function, adopts a user-defined threshold in pheromone update process and provides a group of suitable parameter values. Experimental results clearly demonstrated the effectiveness of the proposed method, and at the same time, in the presence of noise, the proposed approach outperforms other two ACO-based edge detection techniques and four conventional edge detectors.

Introduction

Edge detection is an essential preprocessing operation in many machine vision industrial applications [1], [2], [3], such as shape recognition, 3D reconstruction, defect detection on mechanical parts, etc. Edges are sets of pixels in the image regions with sharp intensity changes and correspond to visible contour features of objects in an image. Normally, edge detection is a process that inputs a grayscale image and then outputs a binary image to indicate the edges of objects.

Many edge detection methods have been proposed in the last decades. Most of them are based on digital differential methods [4], such as Sobel, Roberts, Laplacian operators, and so on. However these algorithms are quite sensitive to noise, in order to suppress noise, Marr et al. [5] and Canny [6] applied the Gaussian pre-smoother to the image before detecting edges. Unfortunately, this procedure would blur edges while removing noises in the image. Consequently, these approaches would sacrifice the locating accuracy of the detected edges to a certain extent [7], as shown in Fig. 1. To overcome this limitation, edge detection could be formulated as an optimization problem. Ant colony optimization (ACO) [8] as a relatively new optimization approach has been used for edge detection, which could be classified into two categories: direct edge detection [9], [10], [11], [12], [13], [14], [15], [16], [17], [18] and broken edge compensation [19], [20]. In this work, the proposed method is based on the former, because the latter is used just as a complementary tool to other edge detectors.

ACO as a swarm intelligence approach has been adopted to directly detect image edges by Zhuang [9], [10] since 2004. He used the Ant Colony System (ACS) to build the perceptual graph of images for extracting edge features. Unfortunately, his two methods are only capable of detecting simple edges. After that, Nezamabadi-Pour et al. [11] exploited the Ant System (AS) and applied the directed graph to detect edges. Even though they derived the relationship between image area and the number of ants, they did not use other information about the image for more parameter setting. In practice, the more the adaptive parameters are provided, the more conveniently the proposed method can be used. In this work, we employed three adaptive parameters. Tian et al. [12] also adopted the ACS and proposed the method of computing adaptive threshold to tackle the edge detection problem. Similarly, Jevtic et al. [13] first used multiscale adaptive gain for image contrast enhancement, then applied the ACS to detect image edges. Since then many adaptive thresholding methods [14], [15], [16], [17], [18] have been presented. But in fact, the ACO meta-heuristic approach as a swarm intelligence technique is inherently adaptive, because this technique is a collective behavior of decentralized, self-organized agents in a swarm. Therefore, in this work, a user-defined threshold in the pheromone update process is adopted to take advantage of this feature of ACO, and noises can be suppressed effectively by adjusting the user-defined threshold.

In addition, the heuristic information matrices applied to ACO-based edge detection could be generally divided into two types: one is proposed by Nezamabadi-Pour et al., which was used in literatures [11], [13], [15], [16]; the other adopted in [12], [14], [17], [18] was devised by Tian et al. On the basis of the two types of heuristic information matrices, a new heuristic information matrix (i.e. Eq. (5) in Section 3) is proposed in this work to improve the gradient response on the edge.

The remaining sections of this paper are organized as follows. First, the main differences between AS and ACS and the implementation of AS algorithm are briefly described in Section 2. Then, the proposed AS-based method for detecting image edges is presented in Section 3. Next, the parameter setting of the proposed approach and the experimental results of performance comparison are given in Section 4. Finally, the conclusions are drawn in Section 5.

Section snippets

Ant colony optimization

The basic principle of ACO has been described in more detail in the literature [8], hence we will not repeat it in this section. Since both AS and ACS have been used to detect image edges, we need to simply introduce the differences between them. Besides, we also briefly describe the implementation of AS algorithm.

The proposed method

ACO-based edge detection methods could transform the image intensity values into the pheromone values left by artificial ants in the images. According to these deposited pheromone values, the image edges could be detected.

Experimental results

The suitable parameter values of the proposed method were obtained through more than 1000 experiments. Consequently, in this section, we give the specific values of these parameters so that this method could be used conveniently. Moreover, we compare the proposed approach with two other ACO-based edge detection techniques [11], [12] and four traditional edge detectors (i.e. Canny, Sobel, Log and Roberts) in the presence of noise.

Conclusions

In this paper an ACO-based edge detection approach was proposed. We employed a new heuristic function to improve the gradient response on the edge and adopted a user-defined threshold in the pheromone update process to suppress noise. According to the results from literatures [11], [12], [13], [14], [15], [16], [17], [18] and our experimental results, for ease of use, we provided a group of suitable parameter values and discussed the roles of some core parameters in detail. Such as parameters ρ

Acknowledgments

The authors wish to thank Jing Tian, who is the author of the literature [12], for his help in the implement of the algorithms used in this work.

References (24)

  • O. Laligant et al.

    Merging system for multiscale edge detection

    Opt. Eng.

    (2005)
  • Q. Sun et al.

    Shaft diameter measurement using a digital image

    Opt. Lasers Eng.

    (2014)
  • Q. Sun et al.

    A robust edge detection method with sub-pixel accuracy

    Optik

    (2014)
  • L. Fan et al.

    Edge detection with large depth of focus using differential Haar–Gaussian wavelet transform

    Opt. Commun.

    (2007)
  • D. Marr et al.

    Theory of edge-detection

    Proc. R. Soc. Ser. B – Biol. Sci.

    (1980)
  • J. Canny

    A computational approach to edge-detection

    IEEE Trans. Pattern Anal. Mach. Intell.

    (1986)
  • P.H. Qiu

    Jump surface estimation, edge detection, and image restoration

    J. Am. Stat. Assoc.

    (2007)
  • M. Dorigo et al.

    Ant colony optimization

    IEEE Comput. Intell. Mag.

    (2006)
  • X. Zhuang, Edge feature extraction in digital images with the ant colony system, in: IEEE International Conference on...
  • X. Zhuang, Image feature extraction with the perceptual graph based on the ant colony system, in: IEEE International...
  • H. Nezamabadi-pour et al.

    Edge detection using ant algorithms

    Soft Comput.

    (2006)
  • J. Tian et al.

    An ant colony optimization algorithm for image edge detection

    IEEE Congr. Evol. Comput.

    (2008)
  • Cited by (43)

    • A proposal of edge detection in images with multiplicative noise using the Ant Colony System algorithm

      2022, Engineering Applications of Artificial Intelligence
      Citation Excerpt :

      At the end of the algorithm, both types of pheromones are summed and thresholding is performed to estimate the edges. Other more recent works such as those of Liu and Fang (2015) and Rafsanjani and Asghari (2015) perform tests using ACO in images with and without noise and compared them to other contour detectors such as Canny, Sobel, Roberts, among others. On the other hand in Asha and Wenisch (2017) and Martinez and Buemi (2019) propose the use of ACO for the detection of visible contours as partial contours.

    • A new edge detection approach via neutrosophy based on maximum norm entropy

      2019, Expert Systems with Applications
      Citation Excerpt :

      Canny (1986) and Laplacian of Gaussian (Sotak & Boyer, 1989) basically use the Laplacian operator. Roberts (Rosenfeld, 1981), Prewitt (Seif et. al., 2010) and Sobel (1990) use the Gradient operator In addition to Gradient and Laplacian based edge detection methods, wavelet (Tua & Karstoft, 2015; Shih & Tseng, 2005), neural network (Lu et al., 2003; Gua et. al., 2015), particle swarm optimization (Mahdi et. al., 2013), cuckoo search optimization (Gonzalez, et. al., 2016), ant colony optimization (Liu. & Fang, 2015), Cellular Automata (Amrogowicz et al., 2016), Anisotropic Gaussian Kernels (Zhang et al., 2017b), and different edge detection approaches (Sun et al., 2016; Zhang et al., 2017a; Zareizadeh et. al., 2013) have also been proposed in the literature. The Neutrosophic Set (NS) was introduced by Florentin Smarandache.

    • Unraveling the Diverse Array of Edge Detection Techniques Employed in Image Analysis:An In-depth Exploration

      2023, Proceedings of International Conference on Contemporary Computing and Informatics, IC3I 2023
    View all citing articles on Scopus
    View full text