Patent ID: 8018520

Claim:
An imaging device comprising: an image obtaining unit configured to capture an image of a subject to obtain video data; an extraction unit configured to extract high-frequency components in at least one of a horizontal direction and a vertical direction of the video data; a calculation unit configured to calculate a parameter based on the high-frequency components in the at least one of the horizontal direction and vertical direction extracted by the extraction unit, the parameter indicating a magnitude of a high-frequency component for every line or every group of lines in the at least one of the horizontal direction and vertical direction; a combining unit configured to combine an indicator indicating a magnitude of the parameter with the video data at a predetermined position in the at least one of the horizontal direction and vertical direction; a storage unit configured to store a maximum value of previous parameter values for every line or every group of lines, the maximum value of previous parameter values being calculated for the parameter calculated for every line or every group of lines; and a comparison unit configured to output to the combining unit a parameter whose value is the greater of the maximum value stored in the storage unit and a value of a parameter calculated by the calculation unit for a corresponding line or group of lines, and, when the value of the parameter calculated by the calculation unit is greater than the maximum value stored in the storage unit, update the maximum value stored in the storage unit with the value of the parameter calculated by the calculation unit.