1. A computer implemented method for color equalization, comprising: (a) determining, by a computer, image statistics for at least a first portion of an input image, wherein the image statistics comprise a histogram; (b) generating, by the computer, a transformation function for the first portion of the input image based at least in part on the image statistics; (c) enhancing, by performing histogram equalization or contrast stretch by the computer, the first portion of the input image using the transformation function; (d) displaying, by the computer, the enhanced first portion of the input image; and (e) dynamically and continually repeating, by the computer, steps (a)-(d) for at least a second portion of the input image during an operation that determines the second portion of the input image, wherein the operation is at least one of zooming in, zooming out, or panning.