A Genetic Programming Approach for Image Segmentation

  • Hugo Alberto Perlin
  • Heitor Silvério Lopes


This work presents a methodology for using genetic programming (GP) for image segmentation. The image segmentation process is seen as a classification problem where some regions of an image are labeled as foreground (object of interest) or background. GP uses a set of terminals and nonterminals, composed by algebraic operations and convolution filters. A function fitness is defined as the difference between the desired segmented image and that obtained by the application of the mask evolved by GP. A penalty term is used to decrease the number of nodes of the tree, minimally affecting the quality of solutions. The proposed approach was applied to five sets of images, each one with different features and objects of interest. Results show that GP was able to evolve solutions of high quality for the problem. Thanks to the penalty term of the fitness function, the solutions found are simple enough to be used and understood by a human user.


Fitness Function Image Segmentation Genetic Programming Crossover Operator Penalty Term 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. 1.
    Bhanu, B., Lin, Y.: Object detection in multimodal images using genetic programming. Appl. Soft Comput. 4(2), 175–201 (2004)CrossRefGoogle Scholar
  2. 2.
    Bojarczuk, C., Lopes, H., Freitas, A., Michalkiewicz, E.: A constrained-syntax genetic programming system for discovering classification rules: application to medical data sets. Artif. Intell. Med. 30(1), 27–48 (2004)CrossRefGoogle Scholar
  3. 3.
    Daves, B.: Open computer vision library. (2010)
  4. 4.
    Davis, J.W., Keck, M.A.: A two-stage template approach to person detection in thermal imagery. In: Proceedings of the Seventh IEEE Workshops on Application of Computer Vision, vol. 1, pp. 364–369 (2005)Google Scholar
  5. 5.
    Frucci, M., Baja, G.S.: From segmentation to binarization of Gray-level images. J. Pattern Recognit. Res. 3(1), 1–13 (2008)Google Scholar
  6. 6.
    Goldberg, D.E.: Genetic Algorithms in Search, Optimization, and Machine Learning. Addison-Wesley, Reading (1989)zbMATHGoogle Scholar
  7. 7.
    Gonzalez, R.C., Woods, R.E.: Digital Image Processing, 3rd edn. Prentice-Hall, Upper Saddle River (2006)Google Scholar
  8. 8.
    Koza, J.R.: Genetic Programming: On the Programming of Computers by Means of Natural Selection. The MIT Press, Cambridge (1992)Google Scholar
  9. 9.
    Kwon, S.: Threshold selection based on cluster analysis. Pattern Recognit. Lett. 25(9), 1045–1050 (2004)CrossRefGoogle Scholar
  10. 10.
    Leibe, B., Leonardis, A., Schiele, B.: Robust object detection with interleaved categorization and segmentation. Int. J. Comput. Vis. 77(1–3), 259–289 (2008)CrossRefGoogle Scholar
  11. 11.
    Martel-Brisson, N., Zaccarin, A.: Kernel-based learning of cast shadows from a physical model of light sources and surfaces for low-level segmentation. In: IEEE Conference on Computer Vision and, Pattern Recognition, pp. 1–8 (2008)Google Scholar
  12. 12.
    Otsu, N.: A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 9(1), 62–66 (1979)MathSciNetCrossRefGoogle Scholar
  13. 13.
    Punch, B., Zongker, D.: Lil-gp genetic programming system. (2010)
  14. 14.
    Shapiro, L.G., Stockman, G.C.: Computer Vision. Prentice-Hall, New Jersey (2001)Google Scholar
  15. 15.
    Silva, R.: Erig Lima, C., Lopes, H.: Template matching in digital images using a compact genetic algorithm with elitism and mutation. J. Circuits Syst. Comput. 19(1), 91–106 (2010)CrossRefGoogle Scholar
  16. 16.
    Xu, X., Xu, S., Jin, L., Song, E.: Characteristic analysis of Otsu threshold and its applications. Pattern Recognit. Lett. 32(7), 956–961 (2011)CrossRefGoogle Scholar
  17. 17.
    Zhang, H., Fritts, J., Goldman, S.: Image segmentation evaluation: a survey of unsupervised methods. Comput. Vis. Image Underst. 110(2), 260–280 (2008)CrossRefGoogle Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2013

Authors and Affiliations

  1. 1.Federal Institute of EducationScience and Technology of ParanáParanaguáBrazil
  2. 2.Federal University of Technology ParanáCuritibaBrazil

Personalised recommendations