1. A method for enhancing an image, comprising: generating a luminance histogram for said image; generating a derivative histogram by taking a first derivative of said luminance histogram; searching for a plurality of black peaks and searching for a plurality of white peaks using said derivative histogram; and performing luminance scaling of said image between one black peak of said plurality of black peaks and one white peak of said plurality of white peaks.