1. A method of processing an image, the method comprising estimating a parameter for local color correction, the parameter estimation including computing a cumulative histogram path length of the image.