Optic disc localization in retinal images using histogram matching
© Dehghani et al; licensee Springer. 2012
Received: 23 August 2011
Accepted: 3 September 2012
Published: 8 October 2012
In this article, we propose a new method for localizing optic disc in retinal images. Localizing the optic disc and its center is the first step of most vessel segmentation, disease diagnostic, and retinal recognition algorithms. We use optic disc of the first four retinal images in DRIVE dataset to extract the histograms of each color component. Then, we calculate the average of histograms for each color as template for localizing the center of optic disc. The DRIVE, STARE, and a local dataset including 273 retinal images are used to evaluate the proposed algorithm. The success rate was 100, 91.36, and 98.9%, respectively.
Retina is the innermost layer of the eye which can be visualized using adequate apparatus such as fundus camera. The two main structures used in retinal image analysis are blood vessels and optic disc. Optic disc is the brightest region in the retinal image and the blood vessels originate from its center . Optic disc is a key reference for recognition algorithms [2, 3], blood vessels segmentation , and diagnosing some diseases such as diabetes . Histogram is the main character of each image and histogram-based methods are used as the first step of most preprocessing methods to improve the contrast and illumination of retina images. One of the main drawbacks of uneven illumination in retina images and their poor quality is the inability to analyze the optic disc. Applying illumination equalization (histogram equalization, histogram specification, and other normalization methods) as preprocessing methods to retina images considerably improves the contrast, and illumination for further analysis tasks such as optic disc localization and vessel segmentation [6, 7]. In this article, we propose a new method based on the histograms of some optic discs extracted from retinal images. For this purpose, we extract the optic disc of the first four retinal images in DRIVE dataset. Then, we calculate the average of histograms for each color component as template to localize the center of optic disc.
The rest of this article is organized as follows. “Review of previous methods” section is devoted to review the latest proposed methods for optic disc localization. In “Anatomy of the retina” section, we briefly review the anatomy of retina. “Method” section presents the proposed method for optic disc localization. Experimental results are given in “Results” section. Finally, “Conclusion and future work” section is devoted to concluding remarks.
Review of previous methods
Osareh  proposed a method based on template matching for localizing the center of optic disc. In this algorithm, some of retinal images in dataset were used to create a template and the correlation between each image and template is computed. The point which has the maximum correlation value is selected as the center of optic disc.
Youssif et al.  used directional pattern of the retinal blood vessels to localize the center of optic disc. Hence, a simple matched filter was proposed to match the direction of the vessels at the optic disc vicinity. The retinal vessels were segmented using a simple and standard 2D Gaussian matched filter. Consequently, vessels’ direction map of the segmented retinal vessels was obtained using the same segmentation algorithm. Then, the segmented vessels were thinned and filtered using local intensity to represent the optic disc center candidates. The Gaussian matched filter was resized in four different sizes, and the difference between the output of the matched filter and the vessels’ directions was measured. The minimum difference provided an estimate of the optic disc–center coordinates.
Li and Chutatape  proposed a new method to localize optic disc center. The candidate regions were first determined by clustering the brightest pixels in retinal images. This strategy can only work when there is no abnormality in the retina image. Principal component analysis was applied to these candidate regions. The minimum distance between the original retinal image and its projection onto disk space was located as the center of optic disc.
Rangayyan et al. [11, 12] proposed two different methods. In the first method, optic disc center was localized based on the property that it appears as the focal point of the blood vessels in retina mage. The method includes detection of the blood vessels using Gabor filters and detection of peaks in the node map via phase portrait analysis. In the second method, edge detection using the Sobel operators and detection of circles using the Hough transform were employed to localize optic disc and its center.
Aquino et al.  used two independent methodologies to detect optic disc in retina images. Location methodology obtains a pixel that belongs to the optic disc using image contrast analysis and structural filtering techniques. Then, a boundary segmentation methodology estimates a circular approximation of the optic disc boundary by applying mathematical morphology, edge detection techniques, and the circular Hough transform.
Siddalingaswamy and Gopalakrishna Prabhu  proposed a new approach for the automatic localization and accurate boundary detection of the optic disc. Iterative thresholding method followed by connected component analysis was employed to localize the approximate center of the optic disc. Then, geometric model based on implicit active contour model was applied to find the exact boundary of the optic disc.
Foracchia et al.  presented a new technique for localizing the optic disc center in retinal images. The method was based on the preliminary detection of the main retinal vessels. All retinal vessels originate from the optic disc and their path follows a similar directional pattern (parabolic course) in all images. To describe the general direction of retinal vessels at any given position in the image, a geometrical parametric model was proposed, where two of the model parameters are the coordinates of the optic disc.
Carmona et al.  used genetic algorithm method to obtain an ellipse approximating the optic disc in retinal images. A set of hypothesis points were initially obtained that exhibited geometric properties and intensity levels similar to the optic disc contour pixels. Then, a genetic algorithm was used to find an ellipse containing the maximum number of hypothesis points in an offset of its perimeter, considering some constraints.
Some methods are based on the Hough transform which is capable of finding geometric shapes. Therefore, the circular shape of optic disc was detected using Hough transform and other algorithms such as thresholding and morphological operations [21–25].
Anatomy of the retina
1- Superior temporal blood vessels
2- Superior nasal blood vessels
4- Optic disc
5- Inferior temporal blood vessels
Most of the methods for localizing optic disc fail when pathological regions exist in retina images [8, 10]. Some other algorithms suffer from high computational cost [9, 11–20]. Here, a new robust method for localizing the center of optic disc in presence of pathological regions is proposed. Since in this method preprocessing algorithms such as segmentation are not used, the computational cost is drastically reduced with respect to some counterparts.
In this method, similar to , we use a number of retinal images to create a template for optic disc. However, instead of creating an image as template, we construct three histograms as template, each corresponding to one color component. At the first step to decrease the effect of noise, we apply an average filter with the size of 6 × 6 pixels to retina images. Then, we use a window with the typical size of the optic disc (80 × 80 pixels) to extract the optic disc of each retinal image. In the next step, we separate color components (red, blue, and green) of each optic disc to obtain the histogram of each color component. Finally, the mean histogram of each color component for all retinal image samples is calculated as template. Histogram is a graph showing the number of pixels at each different intensity value found in an image. As illustrated before, we use the histogram of each three channels (red, green, and blue) as template for optic disc localization. Then, to decrease the effect of pathological regions and exudates that are high-bright regions like optic disc, we use the histogram of pixels which has the intensity value lower than 200. Therefore, we decrease the effect of high intensity regions that are common in optic disc, pathological regions and exudates and the role of vessels for optic disc localization will increase.
where a and b are two histograms that we want to calculate their correlation and c is the result of the correlation. Therefore, if the two histograms (a and b) are similar Σ i (a i − b i )2 ≈ 0, and c ≈ 1, else and c<< 1. Therefore, using Equation (1) we can calculate the correlation between two histograms and the result of correlation is in the range of [0 1].
where max(C) is the element of C with the maximum value. Therefore, the threshold value for each image is half of the maximum value of the correlation function. The center of gravity of the binary image obtained from thresholding is considered as the center of optic disc.
In Figure 9a, there is not any vessel in vicinity of optic disc and the characteristic of optic disc-like brightness and high number of vessels in vicinity of optic disc cannot be seen; therefore, our proposed method failed to localize the optic disc center. For the retinal image in Figure 9b, optic disc is in the corner of image and there is really no vessel in optic disc. Therefore, our proposed method failed to localize the optic disc center. Therefore, in situation like Figure 9a that there are not any vessels in optic disc vicinity or in situation that we have pathological region with high number of vessels, our proposed method failed to localize optic disc center.
Results of different algorithms
Running time (s)
Youssif et al. 
Intel Core 2 Duo 1.7 GHz and 512 Mb RAM
Rangayyan et al. 
Intel Core 2 Duo 2.5 GHz and 1.96 GB RAM
Zhu et al. 
Osareh et al. 
Zhu et al. 
Siddalingaswamy and Gopalakrishna Prabhu 
Foracchia et al. 
Intel Core 2 Duo 2 GHz and 512 Mb RAM
Tobin et al. 
Fleming et al. 
Intel Core 2 Duo 2.4 GHz
Niemeijer et al. 
Sekhar et al. 
Park et al. 
Intel 1 GHz and 1 GB RAM
Ter Haar 
Barrett et al. 
Intel Core 2 Duo 2.67 GHz and 3.24 GB RAM
From Figure 10, we can understand the effect of thresholding on the average distance between the estimated and manually identified optic disc centers. Therefore, the best threshold value is half of the maximum value of the correlation function obtained before applying threshold.
Conclusion and future work
In this article, we presented a new method for localizing the center of optic disc. The average distance between the estimated and the manually identified optic disc centers is 17 and 26 pixels in  and 23.2 and 119 pixels in  for DRIVE and STARE datasets, respectively. These values in the proposed method are 15.9, 11.4, and 8.9 pixels for DRIVE, STARE, and local datasets, respectively. Therefore, the estimated optic disc centers obtained using the proposed method are more accurate in comparison to other algorithms such as methods introduced in [9, 11, 12]. In this article, we used the histograms of some optic discs and in presence of pathological regions and exudates in retinal images, and we could determine the center of optic disc correctly. Most of the counterpart methods perform well when there are no pathological regions or exudates in retinal images. In this article, the first four retinal images in DRIVE dataset were used to obtain their histograms as template, using more retinal images such as retinal images in STARE and local datasets may improve the effectiveness of our proposed method. Also to decrease the running time of our proposed method, we can combine our proposed method with other methods. For example, as we know template matching method proposed in  fails in situation like pathological regions and exudates exit and also the accuracy of template matching method for localizing optic disc center of retina images without any pathological regions and exudates is low. Therefore, we can use template matching method for retina images to obtain candidate regions that probability of existing optic disc in them is more than other regions in retina images. Then, instead of applying our proposed method on the whole of retina images, we apply it to candidate regions to obtain optic disc center. Therefore, the running time of our proposed method will considerably decrease. In future work, we use optic disc center obtained as the first step for localizing the boundary of optic disc and also we can use the optic disc center for recognition algorithm in our future research for human recognition based on the retinal images.
aRetina images in local dataset were collected by Dr. Soltani in Razi eye clinic, 64, Keshavarz Blvd, 14188, Tehran, Iran, http://www.razieyeclinic.com.
This study was partially supported by the Research Institute for ICT under Grant No. T-500-4789.
- Kumari VV, Suriyanarayanan N: Blood vessel extraction using wiener filter and morphological operation. Int. J. Comput. Sci. Emerg. Technol. 2010, 1(4):7-10.Google Scholar
- Farzin H, Abrishami Moghaddam H, Moin M-S: A novel retinal identification system. EURASIP J. Adv. Signal Process 2008, 2008: Article ID 280635. 10.1155/2008/280635View ArticleGoogle Scholar
- Ortega M, Penedo MG, Rouco J, Barreira N, Carreira MJ: Retinal verification using a feature points-based biometric pattern. EURASIP J. Adv. Signal Process 2009, 2009: Article ID 235746. 10.1155/2009/235746View ArticleGoogle Scholar
- Jiang Y, Bainbridge-Smith A, Morris AB: Blood vessel tracking in retinal images. Proceedings of Image and Vision Computing 2007, 126-131.Google Scholar
- Abdel-Ghafar R, Morris T, Ritchings T, Wood I: Detection and characterisation of the optic disk in glaucoma and diabetic retinopathy. Proceedings of Medical Image Understanding and Analysis 2004.Google Scholar
- Youssif AA, Ghalwash AZ, Ghoneim AS: Comparative study of contrast enhancement and illumination equalization methods for retinal vasculature segmentation. Cairo International Biomedical Engineering Conference (CIBEC) 2006.Google Scholar
- Youssif AA, Ghalwash AZ, Ghoneim AS: A comparative evaluation of preprocessing methods for automatic detection of retinal anatomy. Proceedings of the Fifth International Conference on Informatics and Systems (INFOS 07) 2007, 24-30.Google Scholar
- Osareh A: Automated identification of diabetic retinal exudates and the optic disc. Ph.D. dissertation. Department of Computer Science, Faculty of Engineering, University of Bristol, Bristol, UK; 2004.Google Scholar
- Youssif AA, Ghalwash AZ, Ghoneim AS: Optic disc detection from normalized digital fundus images by means of a vessels’ direction matched filter. IEEE Trans. Med. Imag. 2008, 27: 11-18.View ArticleGoogle Scholar
- Li H, Chutatape O: Automatic location of optic disc in retinal images. Proceedings of the International Conference on Image Processing (ICIP), vol. 2 2001, 837-840.Google Scholar
- Rangayyan RM, Zhu X, Ayres FJ, Ells AL: Detection of the optic nerve head in fundus images of the retina with Gabor filters and phase portrait analysis. J. Digit. Imag. 2010, 23(4):438-453. 10.1007/s10278-009-9261-1View ArticleGoogle Scholar
- Zhu X, Rangayyan RM, Ells AL: Detection of the optic nerve head in fundus images of the retina using the hough transform for circles. J. Digit. Imag. 2010, 23(3):332-341. 10.1007/s10278-009-9189-5View ArticleGoogle Scholar
- Aquino A, Gegundez ME, Mar D: Automated optic disc detection in retinal images of patients with diabetic retinopathy and risk of macular edema. Int. J. Med. Med. Sci 2010, 87-92.Google Scholar
- Siddalingaswamy PC, Gopalakrishna Prabhu K: Automatic localization and boundary detection of optic disc using implicit active contours. Int. J. Comput. Appl. 2010, 1: 7.Google Scholar
- Foracchia M, Grisan E, Ruggeri A: Detection of optic disc in retinal images by means of a geometrical model of vessel structure. IEEE Trans. Med. Imag. 2004, 23(10):1189-1195. 10.1109/TMI.2004.829331View ArticleGoogle Scholar
- Carmona EJ, Rincón M, García-Feijoo J, Martínez-de-la-Casa JM: Identification of the optic nerve head with genetic algorithms. Artif. Intell. Med. 2008, 43(3):243-259. 10.1016/j.artmed.2008.04.005View ArticleGoogle Scholar
- Tobin KW, Chaum E, Govindasamy VP, Karnowski TP: Detection of anatomic structures in human retinal imagery. IEEE Trans. Med. Imag. 2007, 26(12):1729-1739.View ArticleGoogle Scholar
- Niemeijer M, Abramoff MD, Ginneken BV: Segmentation of the optic disc macula and vascular arch in fundus photographs. IEEE Trans. Med. Imag. 2007, 26(1):116-127.View ArticleGoogle Scholar
- Fleming AD, Goatman KA, Philip S, Olson JA, Sharp PF: Automatic detection of retinal anatomy to assist diabetic retinopathy screening. Phys. Med. Biol. 2007, 52: 331-345. 10.1088/0031-9155/52/2/002View ArticleGoogle Scholar
- Welfer D, Scharcanski J, Kitamura CM, Dal Pizzol MM, Ludwig LWB, Marinho DR: Segmentation of the optic disk in color eye fundus images using an adaptive morphological approach. Comput. Biol. Med 2010, 40: 124-137. 10.1016/j.compbiomed.2009.11.009View ArticleGoogle Scholar
- Niemeijer M, van Ginneken B, Ter Haar F, Abramoff MD: Automatic detection of the optic disc, fovea and vascular arch in digital color photographs of the retina. Proceedings of the British Machine Vision Conference 2005, 109-118.Google Scholar
- Sekhar S, Al-Nuaimy W, Nandi AK: Automatic localization of optic disc and fovea in retinal fundus. 16th European Signal Processing Conference 2008.Google Scholar
- Park M, Jin JS, Luo S: Locating the optic disk in retinal images. Proceedings of the International Conference on Computer Graphics, Imaging and Visualization 2006, 141-145.Google Scholar
- Ter Haar F: Automatic localization of the optic disc in digital color images of the human retina. M.S. thesis. Utrecht University, Utrecht, The Netherlands; 2005.Google Scholar
- Barrett SF, Naess E, Molvik T: Employing the Hough transform to locate the optic disk. Biomed. Sci. Instrum. 2001, 37: 81-86.Google Scholar
- Lee Lerner K, Lerner BW: The Gale Ecyclopedia of Science, 3rd edn. Thomson-Gale; 2004:1569.Google Scholar
- Osareh A, Shadgar B: Automatic blood vessel segmentation in color images of retina. Iran. J. Sci. Technol. Trans. B: Engineering 2009, 33(B2):191-206.MATHGoogle Scholar
- Staal J, Abramoff MD, Niemeijer M, Viergever MA, van Ginneken B: Ridge-based vessel segmentation in color images of the retina. IEEE Trans. Med. Imag. 2004, 23: 501-509. 10.1109/TMI.2004.825627View ArticleGoogle Scholar
- Hoover A, Kouznetsova V, Goldbaum M: Locating blood vessels in retinal images by piecewise threshold probing of a matched filter response. IEEE Trans. Med. Imag. 2000, 19(3):203-210. 10.1109/42.845178View ArticleGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.