An image processing apparatus creates a pixel value histogram of an
objective image, and approximates a predetermined range of the created
histogram by a bended line formed from two straight lines. Then the
apparatus extracts a pixel value at a boundary between a predetermined
region and another region of the objective image in accordance with the
approximation.