摘要 |
Provided are: an image processing device that has an increased precision in correcting the output signal of a pixel for phase difference detection; an image processing method; an image processing program, and an imaging device. A digital signal processing unit (17) that processes a captured image signal output from a solid-state imaging element (3) containing phase difference detection pixels (31R, 31L) and imaging pixels (30) corrects the output signal of the phase difference detection pixels contained in the captured image signal by means of gain correction processing when correcting the output signal, corrects the output signal by means of averaging correction processing if the signal value (Sc) obtained by the correction is such that Sc < TH1 or Sc > TH2, and stores the post-correction signal in a main memory (16). |