Patent ID: 8903171

Claim:
A method for detecting undesired temporal luminance variations in a sequence of video frames, wherein the method includes: generating a plurality of frame luminance signals based on the sequence of video frames; generating a global luminance signal based on the plurality of frame luminance signals; computing an estimated variation frequency of the plurality of frame luminance signals with respect to the global luminance signal; determining, by a processor in response to instructions stored on a non-transitory computer readable medium, an expected variation frequency based on a frame rate of the sequence of video frames and an illumination frequency; and determining whether a difference between the estimated variation frequency and the expected variation frequency exceeds a tolerance; and on a condition that the difference is less than the tolerance, correcting temporal luminance variations in the sequence of video frames, wherein correcting temporal luminance variations includes: selecting a set of frames to be corrected; for a current frame from the set of frames: generating a cumulative distribution function for an image component of the current frame, identifying a value of the cumulative distribution function corresponding to a value of a pixel from the image component, identifying a value of a reference cumulative distribution function such that a difference between the value of the cumulative distribution function and the value of the reference cumulative distribution function is minimized, and generating a corrected frame by replacing the value of the pixel with the corrected value.