A Study for Applications of Histogram in Image Enhancement