Beta Fulltext view is in preview — article structure may vary. Browse all articles
Contents
Annals of Advanced Biomedical Sciences Research Article 10 min read

Automated Segmentation of Optic Disc and Cup in Color Fundus Images

Vijay M Mane* and Rahul Bal*
* Corresponding author
ISSN: 2641-9459  10.23880/aabsc-16000111  Received: November 22, 2018  Published: January 09, 2019
  views
 11 references
 6 figures
 1 table
PDF
Keywords
Image processing retina optic disc optic cup glaucoma
Abstract

An automatic Optic disc and Optic cup detection technique which is an important step in developing systems for computer-aided eye disease diagnosis is presented in this paper. This paper presents an algorithm for localization and segmentation of optic disc from digital retinal images. OD localization is achieved by circular Hough transform using morphological preprocessing and segmentation is achieved by watershed transformation. Optic cup segmentation is achieved by marker controlled watershed transformation. The optic disc to cup ratio (CDR) is calculated which is an important parameter for glaucoma diagnosis. The presented algorithm is evaluated against publically available DRIVE dataset. The presented methodology achieved 88% average sensitivity and 80% average overlap. The average CDR detected is 0.1983.

Vijay M Mane* and Rahul Bal

Vishwakarma Institute of Technology, Pune, Maharashtra, India

Maharashtra, India, Tel: 9822550134; Email: manevijaym@gmail.com detected is 0.1983.

Keywords: Image processing; retina; optic disc; optic cup; glaucoma

Introduction

An optic disc (OD) is one of the most important structures of human retina [1] and their detection is an important step in computer aided diagnosis of various eye diseases [2]. In color fundus image, OD appears as a round bright yellowish or white region having shape more or less circular as shown in Figure 1. Optic cup plays an important role in glaucoma detection [3], the enlargement of which with respect to OD is an indicator of glaucoma.

Figure 1: Optic cup plays an important role in glaucoma detection [3], the enlargement of which with respect to OD is an indicator of glaucoma.
Click to enlarge
Figure 1: Optic cup plays an important role in glaucoma detection [3], the enlargement of which with respect to OD is an indicator of glaucoma.

Literature Review

Chaum, et al. [1] proposed a method based on Bayesian classifier to extract OD. By obtaining confidence image map, the point with highest value represents OD center. Cook, et al. [2] proposed a method based on intensity variation as OD has higher intensity variation than other regions in the retina image. Jin, et al. [3] proposed a method to locate OD based on mathematical morphology. Grisan, et al. [4] located OD region based on optimization technique. Convergence point of blood vessels is identified as OD center. Ghalwash, et al. [5] Detected OD using matched directional filters.

Rinton, et al. [6] proposed a genetic algorithm to detect OD boundary. Tegolo, et al. [7] proposed regression based method to find OD boundary. Barmanb, et al. [8] used morphological approach to segment OD. Ginneken, et al. [9] Segmented OD based on point distribution model by using optimized cost function. Basu, et al. [10]

proposed a method based on correlation filter to segment OD. Methodology

The OD localization and segmentation is implemented as shown in Figure 2.

Figure 2: Outline of the proposed method.
Click to enlarge
Figure 2: Outline of the proposed method.

Pre-processing

The input RGB image is resized by factor 0.2 while keeping the aspect ratio as that of original image. The green channel is selected for processing as red channel is more saturated and blue channel has low contrast. The Mathematical morphology in image processing is utilized which is a non-linear methodology that is suitable for analyzing shapes in the image. A closing operation is performed on the resized green channel image using Structuring Element (SE) followed by an opening operation. The closing operation performs dilation followed by erosion while opening operation performs erosion followed by dilation. The formulations for implementing dilation and erosion are as follows in equation 1 and 2. Dilation: C(x,y)= Maximum {A(x-i,y-j) * B(i,j)} (1) Erosion: C(x,y)= Minimum {A(x-i,y-j) * B(i,j)} (2) Where A(x,y) is the input image and C(x,y) is the resulting image obtained after A(x,y) has been processed with a m*n template B(i,j). B is called the structuring element where

0 ≤ i ≤ m-1, 0 ≤ j ≤ n-1 The closing operation with octagonal SE of size 6 pixels is performed in order to fill the vessels in which dilation removes blood vessels and then erosion restores the boundaries. The size of SE is selected such that it keeps actual OD edge and removes all vascular structures on OD region. After performing the closing operation, an opening is performed to remove large picks. The image reconstruction is then performed on an opened image as shown in Figure 3a. The approximate OD center is obtained after thresholding the reconstructed image as shown in Figure 3b and 3c.

Figure 3: Pre-processing: (a) Morphological reconstructed image, (b) Thresholded image, and (c) Approximate OD center (red marked).
Click to enlarge
Figure 3: Pre-processing: (a) Morphological reconstructed image, (b) Thresholded image, and (c) Approximate OD center (red marked).

Circular Hough Transform

The hough transform is used for finding any shape which can be represented by a set of parameters. A circle can be transformed into a set of three parameters, representing its center and radius, so that the Hough space becomes three dimensional. A circular shape is described by parametric equation as defined in equation 3.

$$ (\mathrm {x} - \mathrm {p}) 2 + (\mathrm {y} - \mathrm {q}) 2 = \mathrm {z} 2 (3) $$ Where (p,q) is center of circle of radius z that passes through (x,y). The following steps are involved in procedure: 1) An accumulator space is created first which is made up of a cell for each pixel, initially setting all of these values to zero. 2) For every edge point in image (x,y),all cells are incremented, according to the above equation which could be center of circle. These cells are represented by ‘p’ in above equation. 3) All possible values of ‘q’ are found for all possible values of ‘p’ found in previous step. 4) The cells having the highest probability of being the location of the required circle are searched. These are those cells whose value is greater than its neighborhood cells.

An Accumulator space has peaks where circles obtained from each edge point overlap at centers of any circles detected. The maximum accumulator value is then found out which corresponds to radius that matches the OD and corresponding center is detected as OD center. The intermediate steps output is shown in Figure 4 (a-e) for OD localization.

Figure 4: OD localization: (a) Cropped image around approximate OD center obtained after pre-processing, (b) resized cropped image, (c) Edges obtained with canny threshold, (d) OD center after Circular hough transform (CHT), and (e) Result of CHT shown on original (uncropped) image.
Click to enlarge
Figure 4: OD localization: (a) Cropped image around approximate OD center obtained after pre-processing, (b) resized cropped image, (c) Edges obtained with canny threshold, (d) OD center after Circular hough transform (CHT), and (e) Result of CHT shown on original (uncropped) image.

OD Segmentation using Watershed Transformation

The image is considered as topographic surface where the altitudes are the gray level of the image is considered in the watershed transformation. The region edges correspond to high watersheds and low gradient regions correspond to catchment basins which are homogeneous. The watersheds are defined as the lines separating these catchment basins, which belong to different minima. The regions that the watershed separates are called catchment basins.

The watershed lines represent the boundaries of the objects if each local minimum corresponds to an object of interest under consideration. The watershed may results into many small regions when it infers catchment basins from gradient of the image. To avoid this condition, we used marker controlled watershed transformation in the presented approach. Here two markers are defined- (a) Internal marker, and (b) External marker. The catchment basins are generated by these markers in final segmentation.

In the presented approach, internal marker is selected as a circle having its center and radius is at center and 0.92 times that of radius obtained using circular Hough transform respectively as shown in Figure 5a. While external marker is selected as a circle as shown in Figure 5b with same point as a center as that of internal marker and having radius 1.2 times that of radius obtained using circular Hough transform so that it covers foreground region.

The factor is selected as 1.2 to maintain the distance between two markers. The Gradient of the image is calculated as the input to watershed transformation. We have used gradient magnitude as segmentation function. The Watershed of imposed markers with gradient of image provides the contour of the OD.

The OC segmentation is performed using morphology and watershed transformation. The marker controlled watershed transformation is applied to filtered image to segment OC. As grey level variation is very high in cup area, it is first removed by morphological closing. Then watershed transformation is applied to morphological gradient as shown in Figure 5g of median filtered image by considering locus of OC, k(m,n) that has been calculated as internal marker and square containing OC as external marker centered at (m,n) followed by imposed markers on gradient image produces cup boundary as shown in Figure 5h. The cup to disc ratio (CDR) is also calculated to detect glaucoma.

Figure 5: Optic disc (OD) and Optic cup (OC) segmentation: (a) internal marker for OD segmentation as circle considering OD center obtained using CHT in previous step as center and radius as 0.92* Q (Q as radius obtained using CHT), (b) external marker for OD segmentation as circle considering CHT processed center and radius as 1.2*Q, (c) marker controlled watershed transformed image which superimposes internal and external markers on gradient (sobel operated gradient) of original image, (d)OD boundary (watershed line), (e) Reconstructed image (reconstruction by dilation) for OC segmentation, (f) median filtered image, (g) morphological gradient of median filtered image, and (h) final segmented result of OD and OC (OC segmentation using marker controlled watershed transformation).
Click to enlarge
Figure 5: Optic disc (OD) and Optic cup (OC) segmentation: (a) internal marker for OD segmentation as circle considering OD center obtained using CHT in previous step as center and radius as 0.92* Q (Q as radius obtained using CHT), (b) external marker for OD segmentation as circle considering CHT processed center and radius as 1.2*Q, (c) marker controlled watershed transformed image which superimposes internal and external markers on gradient (sobel operated gradient) of original image, (d)OD boundary (watershed line), (e) Reconstructed image (reconstruction by dilation) for OC segmentation, (f) median filtered image, (g) morphological gradient of median filtered image, and (h) final segmented result of OD and OC (OC segmentation using marker controlled watershed transformation).

Figure 5: Optic disc (OD) and Optic cup (OC) segmentation: (a) internal marker for OD segmentation as circle considering OD center obtained using CHT in previous step as center and radius as 0.92* Q (Q as radius obtained using CHT), (b) external marker for OD segmentation as circle considering CHT processed center and radius as 1.2*Q, (c) marker controlled watershed transformed image which superimposes internal and external markers on gradient (sobel operated gradient) of original image, (d)OD boundary (watershed line), (e) Reconstructed image (reconstruction by dilation) for OC segmentation, (f) median filtered image, (g) morphological gradient of median filtered image, and (h) final segmented result of OD and OC (OC segmentation using marker controlled watershed transformation).

Experimental Results

The experimentation of the proposed method has been done using standard DRIVE (Digital Retinal Images for Vessel Extraction) database [11]. The sample output is as shown in Figure 6. We validate the presented methodology using ground truth that was manually set by the experts on the images. In order to analyze the performance of algorithm the ratio R and sensitivity are calculated.

ImageSensitivityRCDR
1_test0.975090.908610.20736
4_test0.943660.979530.10035
5_test0.930040.836470.03855
6_test0.89830.91790.2887
7_test0.861530.858230.19275
8_test0.998180.449630.22939
9_test0.968530.817240.09575
10_test0.839560.838460.23309
11_test0.853460.831920.38117
12_test0.991690.941920.30244
14_test0.827210.804560.25934
15_test0.629580.624060.2675
16_test0.946840.88810.22287
17_test0.929530.895370.17667
18_test0.951890.793560.16426
20_test0.945630.913420.13459
22_training0.814230.739870.25374
24_training0.874740.807330.23373
25_training0.794930.790590.11835
26_training0.982080.609340.00986
27_training0.844880.766060.17765
28_training0.945350.856510.13574
29_training0.740890.738460.16516
31_training0.958010.559270.09781
32_training0.61010.595910.29814
33_training0.593890.563470.33698
34_training0.955070.840530.20556
35_training0.883840.862310.11668
36_training0.921020.875490.19215
37_training0.918340.899740.20488
38_training0.915850.887910.20488
39_training0.901290.883970.2691
40_training0.839430.832670.22961
Average0.87832730.8002590.198331

Table 1: Performance measures of proposed method with respect to ground truth. Column 1: Image label; Column 2: Sensitivity; Colu

 = Area G D Area D R GU

Where G is the ground truth and D is the detected circle.

Where TP (True positive) and FN (False negative), TP is number of OD pixels correctly classified and FN is number of OD pixels that were not detected. The CDR which is the ratio of number of pixels in optic cup to number of pixels in optic disc is also calculated. This parameter is used for the glaucoma analysis [12]. The Glaucoma is present in the image if CDR exceeds 0.3 value. We found glaucoma in two cases.

The algorithm is applied on 33 images for evaluating the method. The results for these images are listed in Table 1. The presented methodology achieved 88% average sensitivity and 80% average overlap. The average CDR detected is 0.1983.

Figure 6: We validate the presented methodology using ground truth that was manually set by the experts on the images. In order to analyze the performance of algorithm the ratio R and sensitivity are calculated.
Click to enlarge
Figure 6: We validate the presented methodology using ground truth that was manually set by the experts on the images. In order to analyze the performance of algorithm the ratio R and sensitivity are calculated.

Conclusion and Discussion

An automatic system for detection of both optic disc and optic cup has been presented. The presented method uses combination of circular Hough transform using morphological preprocessing and watershed transformation to locate and segment OD respectively. The results presented here may further improved by improving preprocessing which provides approximate OD center. We used mathematical morphology to locate approximate OD center which causes a false detection in abnormal cases.

References

  1. Chaum E, Tobin KW, Priya Govindasamy V, Karnowski TP (2007) Detection of anatomic structures in human retinal imagery. IEEE Transactions on Medical imaging 26: 1729-1739.
  2. Cook HL, Boyce JF, Sinthanayothin C (1999) Automated localization of optic disc, fovea and blood vessels from digital colour fundus images. British journal of ophthalmology 83(8): 902-910.
  3. Park M, Jin JS, Luo S (2006) Locating the optic disc in retinal image. IEEE international conference on computer graphics, pp: 14-145.
  4. Foracchia M, Grisan E, Ruggeri A (2004) Detection of optic disc in retinal images by means of geometrical model of vessel structure. IEEE Transactions on Medical imaging 23(10): 1189-1195.
  5. Ghalwash AZ, Yousssif AA, Sabry AA, Abdel-Rahman Ghoneim (2008) Optic disc detection from normalized digital fundus image by means of vessels direction matched filter. IEEE Transactions on Medical imaging 27(1): 11-18.
  6. Carmona EJ, Rincón M, García-Feijoó J, Martínez-de- la-Casa JM (2008) Identification of the optic nerve head with genetic algorithms. Artif Intell Med 43(3): 243-259.
  7. Rosa LD, Tegolo D, Alina Lupascu C (2008) Automated detection of optic disc location in retinal images. 21st IEEE Symposium on computer based medical systems, Finland, pp: 17-22.
  8. Niemeijer M, Abramoff MD, Ginneken BV (2007) Segmentation of Optic disc, macula and vascular arch in fundus photographs. IEEE Transactions on Medical imaging 26: 116-127.
  9. Basu A, Ryder R, Lowell J, Hunter A, Steel D (2007) Optic nerve head segmentation. IEEE Transactions on Medical imaging 23(2): 256-264.
  10. DRIVE: Digital Retinal Images for Vessel Extraction.
  11. Joshi GD, Krishnadas SR, Sivaswamy J (2010) Optic disc and cup segmentation from monocular color retinal images for glaucoma assessment. IEEE Transactions on Medical imaging 30(6): 1192-1205.

Cite this article

BibTeX
APA
RIS
@article{vijay2019,
  title   = {Automated Segmentation of Optic Disc and Cup in Color Fundus Images},
  author  = {Vijay M Mane* and Rahul Bal},
  journal = {Annals of Advanced Biomedical Sciences},
  year    = {2019},
  volume  = {2},
  number  = {1},
  doi     = {10.23880/aabsc-16000111}
}
Vijay M Mane* and Rahul Bal (2019). Automated Segmentation of Optic Disc and Cup in Color Fundus Images. Annals of Advanced Biomedical Sciences, 2(1). https://doi.org/10.23880/aabsc-16000111
TY  - JOUR
TI  - Automated Segmentation of Optic Disc and Cup in Color Fundus Images
AU  - Vijay M Mane* and Rahul Bal
JO  - Annals of Advanced Biomedical Sciences
PY  - 2019
VL  - 2
IS  - 1
DO  - 10.23880/aabsc-16000111
ER  -