which a threshold value is determined over a small
region. The Niblack's method (Niblack, 1990) uses
mean and standard deviation of image to compute
threshold over a small region (75 × 75 window).
Dynamic Thresholding (Bemsen, 1986) uses mean
and standard deviation of the image along with the
contrast to compute the threshold. Sauvola et al.
(1997) presented a modified Niblack's method
(Niblack, 1990), which uses adaptive contribution of
standard deviation in determining local threshold.
Gray-level Thresholding (Parker, 1991) is done by
computing local threshold value by classifying
object and background pixels and then using region
growing technique to produce the binarized image.
In our proposed algorithm we have modified
Adaptive Niblack's Method (Rais et al., 2004) of
thresholding to make it more efficient and handle
reverse video cases also. The proposed algorithm is
fast and invariant of factors involved in thresholding
of document images like ambient illumination,
contrast stretch and shading effects. We have also
used gamma correction before applying the
proposed binarization algorithm. Gamma correction
is adaptive to brightness of document image and is
found from predetermined equation of brightness
versus gamma. Based upon result of experiments, an
optimal size of window for local binarization
scheme is also proposed.
2 NIBLACK’S METHOD
Niblack’s method (Niblack, 1990) is a local
thresholding method that adapts the threshold
according to the local mean and local standard
deviation over a specific window size around each
pixel location. The local threshold at any pixel (i, j)
is calculated by equation (1)
2
,,, jijiji
kMT
σ
+=
(1)
Where
ji
M
,
and
2
, ji
σ
are the mean and variance
of a window in the image respectively. The size of
the window depends upon the application. The value
of the weight 'k' is used to control and adjust the
effect of standard deviation due to changes in
object's features. Niblack’s algorithm suggests the
value of 'k' to be −0.2.
Niblack's algorithm suffers from the problem of
local thresholding by providing details in the
binarized images that may not be required in
processing. Niblack's method uses fixed value of the
weight 'k' which is not the optimum value.
3 ADAPTIVE NIBLACK’S
METHOD
Adaptive Niblack Method (Rais et al., 2004) offers
improvement over original Niblack's method
(Niblack, 1990). It not only depends upon image's
local statistics characteristics but also considers the
global statistics. This algorithm calculates 'k'
dynamically for each pixel and thresholding is done
using Niblack's method. The normalized difference
between global and local mean provides information
about the illumination difference for each pixel
window with respect to global illumination.
Equation (2) provides a reasonable value for
factor 'k', but it fails to adapt to changes in images
with different contrast.
),max(
,
,
,
ji
ji
ji
MM
MM
K
−
=
(2)
Here M is the global mean of the image and
ji
M
,
is
the local mean computed on each window.
The use of standard deviation of image and local
window improves the result. This algorithm uses the
interrelation of global and local characteristics and
sets the threshold based on the relative change of
local and global mean and standard deviation. The
effect of standard deviation remains same on
different images having different local illumination
and contrast.
Adaptive Niblack method uses eq (2) for images
which do not have large variation in contrast. For
images with large variation in contrast eq (3) is
used.
),max(
)(
03.0
,,
,,
,
jiji
jiji
ji
MM
MM
K
σσ
σσ
−
−=
(3)
4 PROPOSED ALGORITHM
This section describes the proposed algorithm along
with improvements over adaptive Niblack's
algorithm. We have used images with 256 gray
levels, scanned at 300dpi.
VISAPP 2007 - International Conference on Computer Vision Theory and Applications
318