Skip to main content

Optic disc localization in retinal images using histogram matching

Abstract

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.

Introduction

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 [1]. Optic disc is a key reference for recognition algorithms [2, 3], blood vessels segmentation [4], and diagnosing some diseases such as diabetes [5]. 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 [8] 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. [9] 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 [10] 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. [13] 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 [14] 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. [15] 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. [16] 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.

A number of other interesting algorithms can be found in the literature that used vessel segmentation results for optic disc localization [1720].

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 [2125].

Anatomy of the retina

Figure 1 shows a side view of the eye. Eye is approximately a spherical organ. The protective outer layer of the eye is called the sclera. The other components of the eye are regions such as cornea, lens, iris, and retina. Retina is approximately 0.5-mm thick and covers the inner side at the back of the eye. The center of the retina is the optical disc, a circular to oval white area measuring about 3 mm2 (about 1/ 30 of retina area). The mean diameter of the vessels is about 250 μm (1/ 40 of retina diameter).

Figure 1
figure 1

Human eye[24].

The main retinal components numbered in Figure 2 are [8]

1- Superior temporal blood vessels

2- Superior nasal blood vessels

3- Fovea

4- Optic disc

5- Inferior temporal blood vessels

6- Inferior nasal blood vessels

Figure 2
figure 2

Retinal components[8].

Method

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, 1120]. 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 [8], 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.

Template matching

Up to now, we determined three histograms as template for localizing the center of optic disc. For localizing the center of optic disc, at first step to decrease the effect of noise an average filter with the size of 6 × 6 pixels is applied to retina image. Then, an 80 × 80 pixels window is moved through retinal image. In each moving window, we separate the channels (red, blue, and green) and obtain the histogram of each channel. Then, we calculate the correlation between the histogram of each channel in the moving window and the histograms of its corresponding channel in template. For this purpose, we can use correlation or cross-correlation function to obtain the similarity of the two histograms; however, the optic disc centers obtained using these methods are not accurate. The function used for correlation between two histograms is expressed in the following equation:

c = 1 1 + Σ i a i b i 2
(1)

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].

For each moving window, we obtain three values as the results of correlation between the histograms. The result of histograms matching is computed as the weighted sum of the three obtained values:

c i , j = t r × c r + t g × c g × t b × c b
(2)

where (i,j) is the center of moving window. c r , c g , and c b are the results of correlation for three channels (red, green, and blue) and tr, tg, and tb are weights used for each channel. In Equation (2), we can use different weights for c r , c g , and c b . The green channel has the highest weight because the contrast of the green channel is higher than red and blue channels [27]. In some retinal images, blue channel is noisy; therefore, to decrease the effect of blue channel on our localizing method, we determine the lowest weight for blue channel. The best weights that result high accuracy rate for optic disc localizing method are t r =0.5, t g =2, and t b =1. To localize the center of optic disc, we apply thresholding on the correlation function C(i,j). For finding the best threshold, we did a global scanning of different values and the best equation to determine the threshold (Th) was obtained as follows.

T h = 0.5 * max C
(3)

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.

Results

We used the optic disc of the first four retinal images in DRIVE dataset [28] to obtain their histograms as template. The first four retinal images from DRIVE dataset that have been used to extract the histograms of their optic disc are shown in Figure 3. The mean histogram of each color component for the optic discs of these four retina images is calculated as template.

Figure 3
figure 3

The four retinal images used to obtain their optic disc.

In Figure 4, we can see three histograms obtained as template for localizing the center of optic disc.

Figure 4
figure 4

Histograms for three channels: (a) red, (b) green, (c) blue.

The proposed method was applied on a dataset including 40 retina images from DRIVE dataset (565 × 584 pixels), 81 retinal images from STARE dataset (605 × 700 pixels) [29], and 273 retinal images from a local dataset (720 × 576 pixels). Retina images in local dataset were captured by a Canon CR5 in Razi clinica from normal and abnormal eyes. The success rate was 100, 91.36, and 98.9% for these three datasets, respectively. In Figure 5, some retina images in datasets and the results of applying threshold before determining the center of optic disc are shown.

Figure 5
figure 5

(a, c, e, g) Original images; (b, d, f, h) results of applying thresholding.

In Figures 6, 7, and 8, the results of the proposed method for some retinal images in our datasets are shown. In presence of abnormality in the eye (pathological regions or exudates), using the histogram analysis of optic disc is more effective. Pathological regions, exudates, and optic disc are bright regions in the retina images. Therefore, methods such as template matching [6] or methods which are based on the segmentation results of blood vessels [9, 10, 1517] fail to localize the center of optic disc in presence of pathological regions and exudates in retina image.

Figure 6
figure 6

Optic disc center for retina images in DRIVE dataset.

Figure 7
figure 7

Optic disc center for retina images in STARE dataset.

Figure 8
figure 8

Optic disc center for retina images in local dataset.

Figures 6, 7, and 8 show the result of the proposed method on normal retina image and retina images with pathological regions and exudates. Despite the existence of dark hemorrhages or bright exudates and pathological regions, the results of the proposed method are satisfactory and it shows the effectiveness of the proposed method for localizing the center of optic disc. In Figure 9, some retinal images with incorrectly detected optic disc center are shown.

Figure 9
figure 9

A number of retinal images with incorrectly detected optic disc center.

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.

Comparing the proposed method and its counterparts, Table 1 shows the effectiveness of the proposed method. The datasets used in the proposed method are larger than datasets used in other methods and thanks to avoiding pre-processing algorithms such as segmentation, the proposed method takes less computation time in comparison to the counterpart methods. In Table 1, the running times of some methods are indicated. The system’s configuration used in each algorithm was different. Therefore, simple comparison of the running time of different methods does not appear to be correct. A parameter which determines the running time of different methods is computational complexity. In methods that use segmentation, a large number of operations per pixel are needed and consequently these methods require high order of computational cost. In our proposed method, no preprocessing such as segmentation is required; therefore, it takes less computational time. To clarify that system’s configuration does not have high effect we used a computer with system’s configuration of Intel Core 2 Duo, 1.7 GHz, and 512 MB RAM and the average running time for this configuration was 32.5 s.

Table 1 Results of different algorithms

In Figure 10, we can see the sensitivity of the proposed method to the threshold (Th) applied in the final step. Therefore, the average distance between the estimated and manually identified optic disc centers based on the different amount of thresholdings is plotted in Figure 10.

Figure 10
figure 10

Sensitivity of the proposed method to thresholding based on average distance between the estimated and manually identified optic disc centers for all retina images in datasets.

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 [9] and 23.2 and 119 pixels in [11] 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 [8] 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.

Endnote

aRetina images in local dataset were collected by Dr. Soltani in Razi eye clinic, 64, Keshavarz Blvd, 14188, Tehran, Iran, http://www.razieyeclinic.com.

References

  1. 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 

  2. 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/280635

    Article  Google Scholar 

  3. 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/235746

    Article  Google Scholar 

  4. Jiang Y, Bainbridge-Smith A, Morris AB: Blood vessel tracking in retinal images. Proceedings of Image and Vision Computing 2007, 126-131.

    Google Scholar 

  5. 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 

  6. 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 

  7. 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 

  8. 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 

  9. 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.

    Article  Google Scholar 

  10. 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 

  11. 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-1

    Article  Google Scholar 

  12. 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-5

    Article  Google Scholar 

  13. 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 

  14. 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 

  15. 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.829331

    Article  Google Scholar 

  16. 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.005

    Article  Google Scholar 

  17. 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.

    Article  Google Scholar 

  18. 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.

    Article  Google Scholar 

  19. 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/002

    Article  Google Scholar 

  20. 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.009

    Article  Google Scholar 

  21. 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 

  22. 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 

  23. 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 

  24. 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 

  25. Barrett SF, Naess E, Molvik T: Employing the Hough transform to locate the optic disk. Biomed. Sci. Instrum. 2001, 37: 81-86.

    Google Scholar 

  26. Lee Lerner K, Lerner BW: The Gale Ecyclopedia of Science, 3rd edn. Thomson-Gale; 2004:1569.

    Google Scholar 

  27. 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.

    MATH  Google Scholar 

  28. 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.825627

    Article  Google Scholar 

  29. 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.845178

    Article  Google Scholar 

Download references

Acknowledgment

This study was partially supported by the Research Institute for ICT under Grant No. T-500-4789.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hamid Abrishami Moghaddam.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Dehghani, A., Moghaddam, H.A. & Moin, MS. Optic disc localization in retinal images using histogram matching. J Image Video Proc 2012, 19 (2012). https://doi.org/10.1186/1687-5281-2012-19

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1687-5281-2012-19

Keywords