Patent ID: 7973860

Claim:
An apparatus for processing a target video frame comprised in a video stream comprising M input pixels, M being a positive integer, each of the M input pixels respectively having an input gray scale, the target video frame being adjacent to N adjacent video frame, N being a positive integer, said apparatus comprising: a gain generating module for generating, in accordance with the input gray scales of the M input pixels, a contrast gain and a minimum input gray scale, wherein the gain generating module comprises: a statistical unit for selecting an initial maximum input gray scale and an initial minimum input gray scale from the input gray scales by a statistical approach; a generating unit for generating, in accordance with the initial maximum input gray scale and the initial minimum input gray scale, an initial gain; and an averaging unit for averaging the initial gain and N adjacent gains associated with the N adjacent video frames to generate the contrast gain, the averaging unit further being used for averaging the initial minimum input gray scale and N adjacent minimum gray scales associated with the N adjacent video frames to generate the minimum input gray scale; a contrast enhancing module for adjusting, in accordance with the contrast gain and the minimum input gray scale, the input gray scales of the M input pixels to generate an intermediate image comprising M intermediate pixels which each respectively has an intermediate gray scale; and a Gamma adjusting module for adjusting, in accordance with the contrast gain, the intermediate gray scales lower than a first threshold and for outputting the adjusted intermediate image as an output image.