This thesis proposes an efficient histogram modification method for contrast enhancement, which plays a significant role in digital image processing, computer vision, and pattern recognition. We present an automatic transformation technique to improve the brightness of dimmed images based on the gamma correction and probability distribution of the luminance pixel. For video enhancement, we use the temporal information between each frame to reduce the re-computation of the transformation based on the proposed image enhancement method. Experimental results show that the proposed method produces enhanced images of comparable or higher quality than previous state-of-the-art methods.