Patent ID: 8947588
Filing Date: 2015-02-03
Classification: H04N

Abstract:
1. An image processing device comprising: a flash detection unit configured to calculate a line average luminance of each line of a current frame of image data and a frame average luminance of a past frame at least one frame before the current frame and to compare the calculated line average luminance of each line with the calculated frame average luminance to detect whether some lines of the current frame have high luminance due to a flash; a holding unit configured to hold the past frame of the image data; and a flash correction unit configured to replace the lines having high luminance in the current frame with corresponding lines of the past frame, which are held in the holding unit, to correct the image data, if the flash detection unit detects that some lines of the current frame have high luminance, wherein the flash detection unit includes: a block average luminance calculation section configured to calculate a block average luminance of each block of the blocks which are obtained by dividing each line of the current frame; a line average luminance calculation section configured to calculate the line average luminance of each line of the current frame based on the block average luminances of each line calculated by the block average luminance calculation section; a frame average luminance calculation section configured to calculate the frame average luminance of the past frame based on the line average luminance of each line of the past frame calculated by the line average luminance calculation section; a difference calculation section configured to calculate a difference value between each block average luminance and the frame average luminance and a difference value between each line average luminance and the frame average luminance; and a flash determination section configured to determine a presence of high luminance due to a flash if at least a predetermined number of consecutive lines are in a particular state, the particular state being a state in which the difference between the line average luminance and the frame average luminance is equal to or larger than a first threshold value and the difference between each block average luminance and the frame average luminance is equal to or larger than a second threshold value.