Sie sind auf Seite 1von 6

Hardware Implementation of Detection of Glaucoma from

Color Fundus Images

R. Manjula Sri a,*, M. Raghupathi Reddy b, K.M.M.Raoc


a,b
Department of EIE, VNR Vignana Jyothi IET, Hyderabad, India.
c
Department of EEE, BITS-Pilani-Hyd. campus, Hyderabad, India

Abstract

Glaucoma is one of the most commonly observed retinal disease in India that leads to blindness if not diagnosed and treated at early
stage. There are no specific symptoms for this disease, it is observed by loss of side vision. Glaucoma is a slow progressive degeneration of
retinal ganglion cells (RGC) and their axons, resulting in a distinct appearance to the optic nerve head (ONH), often called cupping. Due to
cupping the cup area increases and causes loss of side vision. Usually specially trained clinicians manually grade the fundus images in a
time-consuming manner. The authors have developed a novel algorithm for automatic detection of AMD using image processing
techniques and implementation on hardware. Glaucoma is assessed by estimating the cup to disc ratio (CDR). The proposed algorithm
employed morphological and histogram techniques to identify cup and disc on fundus images and to measure the radius and area of cup
and disc of the retina. Intel’s Open CV Library is used to implement the algorithm. The hardware is a Texas Instruments (TI) DM3730
based system on chip (SOC) low cost, low power single board computer system. The software developed is embedded on the hardware to
test retinal images for the detection of AMD. The algorithm has been tested with 55 normal and 45 glaucomatous images and has yielded
an accuracy of 94%.

Keywords : Glaucoma, Cup to Disc Ratio (CDR), Image processing, open CV.

1. Introduction One of the glaucomatous changes observed in the


retinal fundus images of affected individuals is enlargement
Glaucoma is a group of progressive optic neuropathies of depression, called cupping, of optic disc and/or local rim
that have in common a slow progressive degeneration of thinning. Although the ratio of the diameters of the cup and
retinal ganglion cells (RGC) and their axons, resulting in a Disc (CD Ratio) is a widely accepted index for the
distinct appearance to the optic nerve head (ONH), often assessment of cupping; its determination is often subjective
called ‘cupping’. Glaucoma is the second leading cause of and may include considerable intra- and inter-reader
blindness. Central vision is often preserved until late in the variations. The cup and disk areas play a vital role in
disease despite disabling loss of peripheral vision. This detection of the disease. For normal eye the cup to disc
damage is often linked with elevated intraocular pressure. ratio is bellow 0.3, and for Glaucoma eye Cup to Disk ratio
This damage to the ONH causes partial to full loss of the is greater than 0.3. For normal eye the rim to disc ratio is
visual field, which is the portion of space in which objects greater than 0.7, whereas for the Glaucoma eye it is less
are simultaneously visible inzthe steadily fixating eye. than 0.7. Based on this a quantitative analysis of
Damage to the visual field is irreversible; however, the loss glaucomatous eye images are done. Retinal images are
can be transitory in the early stages of glaucoma. If the captured by using special devices called ophthalmoscopes
condition is untreated the damage to the affected visual also known as fundus scope. Each pixel in the fundus
field usually worsens and spreads eventually until complete image consists of three values namely red, green and blue,
loss of vision may occur. each value being quantized to 256 levels. The retinal
images are cropped to cup and disk regions by ROI. After

*
Corresponding author. E-mail: rmanjulasri@gmail.com

340
that image processing techniques are employed for image 4 to 30 times and in case of Erosion algorithm up to 100
enhancement and analysis. times. On the other hand, Matlab environment is relative
Numbers of researcher have proposed different simply and friendly to use, and provides various sort of
techniques to identify cup and disc and to estimate Cup to function and algorithm. It isn’t necessary to care about
Disc ratio (CDR). G.C. Sekhar et al. expressed that optical memory allocation and memory leak in Matlab, but it is
disc (OD) size in Ocular Hypertension(OHT) patients is very important task in OpenCV. This allocation and
smaller compared to Primary Open angle releasing memory inserts lines into the code. Matlab needs
Glaucoma(POAG) patients and normals. The horizontal for smoothing algorithm 2 lines, but OpenCv needs 5 lines
and the vertical diameters were measured [1]. S.Sekhar et to write source code with the same functionality[15]. Raida
al. used Hough transform to detect OD. To find the Hentati and Mohamed Abid focused on iris recognition
contours of OD, a region of interest (ROI) is found from algorithm. First, the OSIRIS system in order to have a new
the binary image obtained after pre-processing. algorithm independent to the OpenCV library, and added
Morphological operations are used to calculate the the pre-processing module to improve the performance of
magnitude gradient for edge detection[2]. Mahdad Esmaeili the OSIRIS system. Then implemented OSIRIS (Open
et al. efficient OD localization and segmentation are Source for IRIS) system. For this a development board with
important tasks in automated retinal screening. In this a Cyclone II FPGA device is used. The experimental
digital curvelet transform (DCUT) of the enhanced retinal results show that, the segmentation module and the feature
image is taken and its coefficients are modified based on extraction module require more time. The proposal to
the sparsity of curvelet coefficients to get probable location achieve a mixed implementation of the system in order to
of OD[3]. Rudiger Bock et al. proposed a novel automated increase the performances implement the step which has
glaucoma detection system in which, Glaucoma Risk Index the greater time execution in hardware using VHDL
calculation consists of three steps: pre-processing to language while the other parts in C++. The authors also
eliminate the disease independent variations from the input proposed to use co-design approach to implement the entire
image, Feature Extraction by Principle Component algorithm. Jaeyoung Kim, Heesung Jun implemented real-
Analysis (PCA) to transform the pre-processed input data time image processing program using OpenCV library for
to characteristic and compact representation, and a two- Apple’s iPhone4 smart mobile phone. The entire image
stage probabilistic SVM classifier to generate the processing program can do various operations such as
Glaucoma Risk Index[4]. R. Chrastek et al. Author in this thresholding, adaptive thresholding, edge detection and
paper presented a method for optic nerve head contour detection. Convenient user interface was developed
segmentation and its validation. The method is based on using Objective-C and also implemented augmented reality
morphological operations, Hough transform, and an program on iPhone4. Shifeng Hu et al proposed a driver
anchored active contour model[5]. Gopal Dat Joshi et al. In fatigue eye features detection algorithm based on OpenCV
this paper author described Glaucoma detection by image processing and computer vision development
calculating cup to disc ratio (CDR). Morphological platform. These algorithms localize eye-area and detect its
operations and Hough transform are applied to detect the state based on rough to accurate thought, and can localize
OD[6]. Meindert Niemeijer et.al, implemented a fast eye pupils in eye-open state accurately. Hiroki Sugano
method to detect the position of the optic disc and the fovea Ryusuke Miyamoto described a parallel implementation of
in retinal images [7]. Jaeyoung Kim et.al, implemented morphological processing optimized for Cell Broadband
real-time image processing program using OpenCV library Engine. Authors applied several optimization techniques
for Apple’s iPhone4, smart mobile phone [8]. Sopharak suitable for Cell Architecture such as multiple SPEs
et.al, implemented detection of OD based on entropy filter (Synergistic Processor Element), SIMD (Single Instruction
[9]. Rashid Jalal Qureshi et.al, implemented a combination Multiple Data) operation, doubles buffering, and loop
of the different algorithms for the detection of OD and unrolling. By this implementation, 3.2 GHz Cell using two
Macula [10]. Aby P.K et.al, implemented image processing 3.6 GHz SPEs can erode a 1024x768 pixel Image by a 5x5
algorithms on DM3730 for face detection applications [11]. pixel rectangle kernel in 0.601 milliseconds. Shen Khang
Shifeng Hu, proposed a driver fatigue eye features Teoh et al presented in their paper presented work on
detection algorithm based on OpenCV, Hiroki Sugano in implementing a human tracking system on both Intel based
his paper, proposed a parallel implementation of PC platform and embedded systems to optimize the
morphological processing optimized for Cell Broadband algorithms for high performance. The algorithms are
Engine [12]. sIvan Culjak et al, in their paper described benchmarked on the Intel platform processor and
many computer vision algorithms to make a reader familiar BeagleBoard xM based on low-power Texas Intruments
with OpenCV and presented many basic and popular (TI) DM3730 ARM processor. Functions and library in
Computer Vision algorithms, along with many key OpenCV which developed by Intel Corporation was
references for an interested reader to pursue further utilized for building the human tracking algorithms.
details[14].
Slavomir Matuska et al, in their paper presented basic
algorithm for image processing, focusing for their CPU
time consumption in Matlab and OpenCV. Results showed
that OpenCV is faster than Matlab in some algorithm from

341
2. Methodology restoration suppresses image degradation with proper
knowledge about its nature. Most image restoration
The proposed algorithm by the authors for the detection of methods are based on convolution applied globally to the
glaucoma localizes the optical disc and cup and estimates whole image.
the areas of cup and disc. The cup to disc ratio (CDR) is The proposed algorithm for the detection of glaucoma
used for the assessment of glaucoma. The algorithm is employs localization of the optical disc and cup
initially implemented on LabVIEW platform [13] to enable automatically and measurement of the areas of cup and
the algorithms on hardware the LabVIEW program is disc. The cup to disc ratio (CDR) is estimated for the
converted to C. Then these C programs are replaced with assessment of glaucoma.
Open CV programs as the single board computer system First, the retinal images are cropped at ONH (optical
operates on open source Linux platform. nerve head) or cup and disc region of retina and re-sampled
to a standard resolution 256*256. Then histogram
2. 1. Software Development equalization is applied to the cropped image, it redistributes
the pixel values of an image to linearize the accumulated
Figure1 shows the flowchart for the proposed algorithm histogram. Next dilation is applied for elimination of blood
for detection of Glaucoma. Retinal images captured by vessels from retinal image. Finally thresholding with
fundus scopes are considered as source images for the average intensity of Disc and Cup regions is applied to
proposed investigations. First the original image is pre- identify Disc and Cup regions respectively. Application of
processed. Pre-processing operations are employed for histogram calculation provides the areas of Disc and Cup.
improving the image quality (data) by suppressing Cropping refers to the removal of the outer parts of an
unwanted distortions and enhancing the image features image to improve framing, accentuate subject matter or
important for further processing. Pre-processing operations change aspect ratio. The image is cropped for given number
include brightness transformations, geometric (pixels) of right to left and top to bottom. The image
transformations, local pre-processing gradient operation resolution depends on the original image resolution. The
and image restoration. Brightness transformations modify cropped image size is 3 to 4 Kbytes.
pixel intensity. Geometric transforms permit the Re-sampling is the mathematical technique used to
elimination of geometric distortions that are introduced create a new version of the image with a different width
during the process of image capture. Local pre-processing and/or height in pixels. Re-sampling in Picture Window is
(Smoothing) suppresses noise and other small intensity performed by the Resize transformation. The Resize dialog
fluctuations in the image; equivalent to the suppression of boxes displays the input image width, height and dpi
high frequencies in the frequency domain. Gradient setting and specify the output image width, height, dpi
operators suppress low frequencies in the frequency setting and re-sampling method. Changing the dpi setting
domain. (resolution) does not affect the image data in any way, it is
simply a suggested scale factor that is associated with the
Original Glaucoma Retinal Image
image to expedite printing or document the size of the
original subject. The nearest neighbour re-sampling is a
simple method that computes new pixels as the value of the
Preprocessing (Selecting the Region of nearest pixel in the original image.
Interest, Re-sampling) Histogram equalization is a common technique for
enhancing the appearance of images. An image which is
predominantly dark has its histogram skewed towards the
Pre-processing
(Green plane extraction, lower end of the grey scale and all the image detail is
Histogram equalization) compressed into the dark end of the histogram. If the grey
levels at the dark end are `stretch out' to produce a more
uniformly distributed histogram, then the image would
Elimination of blood vessels
become much clearer. Histogram equalization involves
(Dilation)
finding a grey scale transformation function that creates an
output image with a uniform histogram. Histogram
Identification of Cup and Disc and estimation of equalization is a method in image processing for contrast
their areas (Thresholding, Histogram) adjustment using the image's histogram.
Histogram equalization accomplishes this by effectively
spreading out the most frequent intensity values.
Histogram equalization is useful in images with
Evaluation of CDR from the estimated areas
of Cup and Disc
backgrounds and foregrounds that are both bright or both
dark. A key advantage of this technique is that it is a fairly
straightforward and an invertible operator.
Figure 1: Flowchart for the proposed algorithm Dilation is one of the two basic operators in the area of
mathematical morphology, the other being erosion. It is
Local image smoothing effectively eliminates impulsive typically applied to binary images, but there are versions
noise or degradations appearing as thin stripes. Image

342
that work on grayscale images. The basic effect of the 2.2. Hardware
operator on a binary image is to gradually enlarge the
boundaries of regions of foreground pixels (i.e. white The hardware is DM3730 SOC based low cost low
pixels, typically). Thus areas of foreground pixels grow in power single board computer system .The block diagram of
size while holes within those regions become smaller. the hardware is presented in figure2. DM3730 is a multi
The dilation operator takes two pieces of data as inputs. core processor that consists of ARM cortex A8 and a
The first is the image which is to be dilated. The second is a TMS320DMC64X+ Digital Signal Processor (DSP). The
(usually small) set of coordinate points known as a single board system (Beagle board) has many extensible
structuring element (also known as a kernel). It is this interfaces for the implementation of detection of retinal
structuring element that determines the precise effect of the diseases. An LCD of 4.7 inch in size with 800x400
dilation on the input image. To compute the dilation of a resolution. Micro SD of 4GB and the high speed USB hub
binary input image by this structuring element, for each are used for display, data storage and for external input-
background pixel, the structuring element is superimposed output devices. The source images are acquired from
on top of the input image so that the origin of the fundus scope interfaced to one of the USB port. The
structuring element coincides with the input pixel position. database as well as the application programs resides in SD
If atleast one pixel in the structuring element coincides with card memory.
a foreground pixel in the image underneath, then the input
pixel is set to the foreground value. If all the corresponding
pixels in the image are background, however, the input
pixel is left at the background value.
For our example 3×3 structuring element, the effect of
this operation is to set to the foreground color any
background pixels that have a neighboring foreground
pixel. Such pixels must lie at the edges of white regions,
and so the practical upshot is that foreground regions grow
(and holes inside a region shrink). Dilation is the dual of
erosion i.e. dilating foreground pixels is equivalent to
eroding the background pixels.
Thresholding is the simplest method of
image segmentation. From a gray scale image, thresholding Figure 2: Block diagram of the hardware
can be used to create binary images. Thresholding an image
means transforming all pixels into two intensity values
only. This is the special type of quantization comparing the
pixel values with a given threshold value. Thresholding 3. Implementation
makes output image with only two values that is 0 and 255
for 8bit gray level image. 3.1. Embedded software

0, if I(r) <=T
J(r) = The single board computer system operates on open
255, if I(r) > T source Linux platform .Hence the algorithms developed are
implemented with open Cv libraries.The OpenCV libraries
I(r) is the color level for the input pixel (r) and J(r) is the and functions used to develop the algorithm are descibed
color level for the output pixel(r) and 0 ≤ T ≤ 255. bellow:
Localization of cup and disc is done by applying cvLoadimage is used to load an image from a file.
threshold technique.To locate the cup, average intensity cvEqualizeHist is normalizes brightness and increases
(bright) in the cup region is chosen as the threshold contrast of the image. cvCalcHist is used to Calculate and
intensity. All the pixels above the threshold intensity are Plot the equalized histogram of an image. cvDilate is used
converted to dark (0 intensity).The pixels with intensity to Dilate (enlargement or expansion) the source image using
below threshold intensity are converted to bright pixels the specified structuring element that determines the shape
(255 intensity) and are identified as Cup region. of a pixel neighborhood over which the maximum is taken
Application of histogram gives the area of the The function supports the in-place mode. Dilation can be
cup.Similarly for identification of the Disc, average applied several (iterations) times. cvFloodFill is used to fill
intensity in the disc region is chosen as threshold. All the a connected component with the same intensity. cv
pixels below this threshold intensity are converted to bright ShowImage is used to display the image in specified
pixels, when threshold is applied.This region is identified window. cvSaveImage is used to Saves an image to a
specified file.
as disc and histogram provides the area of the disc.
The areas of cup and disc are measured and their ratios
(CDR) are estimated. The magnitude of CDR gives an
assessment of the severity of Glaucoma.

343
3.2. Hardware implementation Normal Image Glaucoma image
The implementation of the proposed algorithm employ
three steps cropping of an original image, pre-processing of (a)
cropped image and identification of cup and disc and their
areas. Detection of cup and disc are presented in figure 3,
figure 4 and figure 5 during the execution of the program.
Histogram calculation of the selected region (cup and Disc)
provides the area in terms of pixels.

(b)

(c)

(a) (b)

Figure3: (a)original and (b)cropped images

(d)

(a) (b)
(e)
Figure 4: (a) Histogram equalization, (b) Morphological Dilation

(f)

Figure 5: Disc and Cup identification


Figure 7: (a)original image, (b) cropped image, (c) histogram
equalization, (d) Morphology(dilation), (e) thresholding with Disc
intensity (f) thresholding with cup intensity

4. Results
5. Conclusion
The algorithm has been applied to retinal images of 45
glaucomatous and 55 normal eyes from open source The algorithm has been tested with DRIVE data set and
DRIVE data base as well as data base from local Hospitals. clinical images. 94% of the images tested matched with the
The algorithm has yielded an accuracy of 94%. The ophthalmologist’s reports. The objective of developing this
statistical results of few cases are shown in Table1.The simple embedded system is to provide screening system for
results are compared with results of circle fit techniques identifying retinal diseases at low cost. More over this
employed in the earlier research. The resultant images after system can be duplicated for number of villages with
every step of the algorithm for all these cases are shown in network connectivity; any trained technician can
the figure 7. communicate with expert for advice.

344
Table 1: cup and disc radius, areas and CDR with circular fit and manual [4]Rüdiger Bock ,Jörg Meier , László G. Nyúl , Joachim Hornegger ,
methods Georg Michelson “Glaucoma risk index:Automated glaucoma
Case Region Radius Area CDR CDR detection from color fundus images” Medical Image Analysis 14(3):
(Pixels) (Pixels) (Circle (threshold) 471-481 (2010)
Fit) [5]R. Chra Stek , M. Wolf , K. Donath , H. Niemann , D. Paulus , T.
Case1 Optic disk 52.509 8461 0.2864 0.2802 Hothorn ,B. Lausen , R. Lammer , C.Y. Mardin And G. Michelson
“Automated Segmentation Of The Optic Nerve Head For Diagnosis Of
Cup 30 2424
Glaucoma”, Medical Image Analysis 9 (2005) 297–314
Case2 Optic disk 62 12022 0.3285 0.3471
[6]Gopal Datt Joshi, Jayanthi Sivaswamy, and S. R. Krishnadas “Optic
Cup 36.538 3950 Disk and Cup Segmentation from Monocular Colour Retinal Images
Case3 Optic disk 57.035 10240 0.2272 0.2503 for Glaucoma Assessment” IEEE TRANSACTIONS ON MEDICAL
Cup 28.539 2327 IMAGING pages: 14 June 2011
Case4 Optic disk 55.509 9540 0.3862 0.3888 [7] Meindert Niemeijer, Michael D. Abramoff, Bram Van Ginneken “ Fast
Cup 34.615 3672 Detection of the Optic Disc and Fovea in Colour fundus photographs
Case5 Optic disk 52.002 9508 0.4155 0.4930 Med Image Anal. 2009 December; 13(6): 859–870.
[8] Jaeyoung Kim, Heesung Jun: Implementation of Image Processing
Cup 36.513 3951 and Augmented Reality Programs for Smart Mobile Device, 6th
Case6 Optic disk 63.008 12964 0.4412 0.4549 International Forum on Strategic Technology (IFOST) 2011,pp1070-
Cup 42.5 5720 1073.
Case7 Optic disk 52.5 9552 0.1850 0.2267 [9] A.Sopharak, B.Uyyanonvara, S.Barman and
Cup 25 1768 T.H.Williamson―Automatic detection of diabetic retinopathy
exudates from non-dilated retinal images using mathematical
morphology methods‖ in Computerized Medical Imaging and Graphics
,Vol. 32 (2009) pp. 720–727.
6. Acknowledgements [10] Rashid Jalal Qureshi et al. ―Combining algorithms for automatic
detection of optic disc and macula in fundus images; Computer Vision
and Image Understanding ,Vol.116 (2012) pp. 138–145
The authors thank doctors at Padmavathy Netralaya, [11] Aby P.K, Anumol Jose, Bibin Jose, Dinu L.D, Jomon John,
Hyderabad, for providing medical images and facilities for Sabarinath G: Implementation and Optimization of Embedded Face
testing and for their valuable suggestions. Thank Detection System, 2011 International Conference on Signal
Dr.S.Rajaratnam for his valuable suggestions. Thank Processing, Communication, Computing and Networking
Technologies (ICSCCN 2011) 2011, pp250-253.
Principal, VNRVJIET-Hyderabad for encouraging the [12]Shifeng Hu, Zuhua Fang, Jie Tang, Hongbing Xu: Research of Driver
research work and providing the facilities. Eye Features Detection Algorithm Based on OpenCV, 2010 Second
WRI Global Congress Intelligent Systems (GCIS), Vol: 3, pp 348 –
351.
[13] R.Manjula Sri, Ch.Madhubabu, KMM Rao: Lab VIEW based
References assessment of CDR for the detection of Glaucoma-Proceedings of
IEEE International Conference on Emerging trends in Computing,
[1] Dr. G.Chandra Shekar, Dr. K.M.M.Rao Dr. Lalith Dandona S. Communication and Nanotechnology(ICECCN-2013) March 25th -26th
Rajendra Kumar, R.N.Anjani “Plannimetric Analysis of Optic Disc ,2013.
and Cup” Readings in Remote Sensing Pages: 5. Date: 2011-05-26 [14] sIvan Culjak, David Abram, Tomislav Pribanic, Hrvoje Dzapo, Mario
[2]S.Sekhar,W.Al-Nuaimy and A.K.Nandi: “Automated Localisation Of CifrekA: Brief introduction to OpenCV- MIPRO, 2012 Proceedings of
Retinal Optic Disk Using Hough Transform” 5th IEEE International the 35th International Convention 21-25 May 2012, Page(s): 1725 -
Symposium on Biomedical Imaging: From Nano to Macro, 2008,, 1730
Page(s): 1577 – 1580 [15] Slavomir Matuska , Robert Hudec _ and Miroslav Benco: The
[3]Mahdad Esmaeili, Hosseinrabbani and Alirezamehridehnavi Comparison of CPU Time Consumption for Image Processing
“Automatic Optic Disk Boundary Extraction by the Use of Curve let Algorithm in Matlab and OpenCV- ELEKTRO, 2012 21-22 May 2012
Transform and Deformable Variation Level Set Model”, Pattern Page(s):75 – 78.
Recognition 45 (2012) 2832–2842.

345

Das könnte Ihnen auch gefallen