The 40 images were divided into two sets, a test set
and a training set, each containing 20 images. The
images have been manually segmented by three ob-
servers to be used as references for comparing the
computer-generated segmentations.
2.1 Contrast Adjustment
After converting each pixel in the image to a vec-
tor of colour components and normalizing each com-
ponent (dividing by 255), the result was converted
to the luminance component Y , computed as Y =
0.299R+0.587G+0.114B,where R, G, and B are the
red, green, and blue components, respectively, of the
colour image. Several other works on the detection of
retinal vessels have used the green channel only; in
the present work, the Y channel was used in order to
reduce noise by averaging the three colour component
images and obtain an image with positive contrast for
the vessels. The artifacts present in the DRIVE im-
ages at the edges were removed by applying morpho-
logical erosion with a disc-shaped structuring element
of diameter 10 pixels.
As the contrast between the blood vessels (fore-
ground) and the retinal tissue (background) is gener-
ally poor in the retinal images, an effective technique
called contrast-limited adaptive histogram equaliza-
tion (CLAHE) is utilized for contrast enhancement
by limiting the maximum slope in the transformation
function. Instead of applying the histogram equal-
ization on the entire image, it is applied only on
small non-overlapping regions in the image. Then,
the neighboring tiles are combined using bilinear in-
terpolation to reduce induced boundaries. Figure 1(b)
shows the contrast enhancementproducedby CLAHE
approach.
2.2 Blood Vessel Segmentation
In many applications of image processing in ophthal-
mology, the most important step is to detect the blood
vessels in the retina (Hoover et al., 2000),(Foracchia
et al., 2004). In our case, we decided to choose
the Soares et al. method (Soares et al., 2006) due
to his high performance in blood vessel segmenta-
tion (≈ 96%). The method produces segmentations
by classifying each image pixel as vessel or non-
vessel, based on the pixel’s feature vector. Feature
vectors are composed of the pixel’s intensity and two-
dimensionalGabor wavelet transformresponses taken
at multiple scales. Gabor wavelets are sinusoidally
modulated Gaussian functions that have optimal lo-
calization in both the frequency and space domains,
thus allowing noise filtering and vessel enhancement
(a) (b)
Figure 1: (a) Green channel of image, (b) Result of contrast
enhancement with CLAHE.
in a single step. The wavelet is capable of detecting
directional structures and of being tuned to specific
frequencies, which is specially important for filtering
out the background noise present in retinal images.
The 2-D Gabor wavelet is defined as
ψ
G
(x) = exp( jk
0
x)exp
−0.5|Ax|
2
(1)
where A = diag
1
√
ε, 1
is a 2×2 diagonal matrix
that defines the anisotropy of the filter, i.e., its elon-
gation in any desired direction. The Gabor wavelet is
actually a complex exponential modulated Gaussian,
where k
0
is a vector that defines the frequency of the
complex exponential.
The Gabor wavelet transform is computed for
spanning from 0 up to 170 degrees at steps of 10 de-
grees. The maximum moduli of the wavelet trans-
form over all angles for various scales are then taken
as pixel features (Fig. 2(a)). In the tests performed,
the elongation parameter was set to ε = 4 and k
0
= 3.
The contrast enhancement image is inverted before
the application of the wavelet transform to it, so that
the vessels appear brighter than the background.
(a) (b)
Figure 2: (a) Maximum modulus response of Gabor wavelet
transform over 18 Gabor filters with scale value of a = 4. (b)
Segmentation of blood vessels.
The blood vessel segmentation is obtained using
a Bayesian classifier with class conditional probabil-
ity density functions, including a Gaussian mixture
model, where each pixel is classified as a vessel or
non-vessel pixel, as shown in Fig. 2(b). To reduce
OPTIC DISC DETECTION IN RETINAL IMAGES BY PATTERN DISTANCE MINIMIZATION
357