An image processing method comprises forming a histogram of an entire
image, determining a ratio between a reference luminance value and a
reference threshold value at a maximum frequency, dividing the image into
local areas, forming a histogram of each local area, determining a
luminance value at a maximum frequency, multiplying this luminance value
by the ratio between the reference luminance value and the reference
threshold value to obtain a threshold value of the local area, and
performing binarization for the local area using the threshold value.
Therefore, it is possible to determine an appropriate threshold value in
each local area of a multiple gray-level image, and obtain, using this
threshold value, a binarized image which enables accurate separation of
an object from a background.