This invention provides a method of leveling an image of a non-uniform
background. The method uses all or a portion of the image data from the
original image and mathematical algorithms to construct a model image
that reflects the non-uniform background of the original image and
subtract the model image from the original image to generate an image
with a more uniform background. This invention also provides computer
software for performing the methods of the invention.