Patent ID: 8767117

Claim:
An imaging device comprising: an image sensor, having standard pixels and focus detection pixels in a predetermined pattern on an imaging surface, for outputting an image signal of one frame from said pixels; a focus evaluation unit for evaluating an in-focus state by referring to brightness of said focus detection pixels from said image signal of said one frame; a first correction value determination unit for arithmetically determining a first correction value by multiplying said brightness of said focus detection pixels by a predetermined gain; a focus detection pixel correction unit for comparing brightness of said standard pixels of a predetermined number disposed around said focus detection pixels with said first correction value, and if said first correction value is in a normal value range equal to or less than a maximum of said brightness of said standard pixels of said predetermined number and equal to or more than a minimum of said brightness of said standard pixels of said predetermined number, replacing said brightness of said focus detection pixels with said first correction value, and if said first correction value is in a value range outside said normal value range, averaging said brightness of said standard pixels of said predetermined number to determine a second correction value, for replacing said brightness of said focus detection pixels with said second correction value to correct said brightness of said focus detection pixels.