1. A method of enhancing contrast, the method comprising: obtaining a first luminance histogram of an input image; generating a second luminance histogram through pixel redistribution of the first luminance histogram; computing a conversion function based on a first cumulative density function based on the first luminance histogram and a second cumulative density function based on the second luminance histogram; and changing luminance distribution of the input image based on the conversion function.