1. A method for correcting uneven brightness in an image stored in a storage memory, using a data processing system having access to said storage memory, comprising the steps of: (a) identifying a first structure on the image having a region with uneven brightness; (b) identifying a region of optimal brightness on the image; (c) determining the observed brightness in the region of optimal brightness from the equation: B measured ⁡ ( x , y ) = B optimal ⁡ ( x , y ) - ∑ j ∈ AllObjects ⁢ ⁢ f ⁡ ( ρ ⁡ ( [ x , y ] , Object j ) ) + ξ ⁡ ( x , y ) where B measured is the observed brightness at a point (x,y) within the region of optimal brightness, B optimal is the optimal brightness for this point, ρ([x, y],Object j ) is the shortest distance between point [x,y] and the object boundary, ξ is the unknown point wise noise with zero mean, and f is an unknown function that is estimated; and (d) correcting the region of uneven brightness using the equation: B corrected ⁡ ( x , y ) = B measured ⁡ ( x , y ) + ∑ j ∈ AllObjects ⁢ ⁢ f ⁡ ( ρ ⁡ ( [ x , y ] , Object j ) ) where B corrected is the corrected brightness at a given point within the region of uneven brightness, B measured is the measured brightness for this point, ρ([x,y],Object j ) is the shortest distance between this point and the identified structure, and f is the estimated function.