摘要 |
PROBLEM TO BE SOLVED: To provide an imaging apparatus which processes pixel output from an imaging element having a focus detection pixel, configured to prevent reduction in image quality due to the focus detection pixel even if optical information, such as an F-number, a focus lens position, and a focal distance, cannot be acquired in real time, and to provide an image processing method and an image processing program.SOLUTION: An image processing unit includes a correction function determination unit 2172. The correction function determination unit 2172 includes: an optical information acquisition unit 2172a for acquiring optical information of an imaging lens for forming an image on an imaging element; an optical function calculation unit 2172b for calculating an optical function for determining a correction function on the basis of the optical information; a pixel function calculation unit 2172c for calculating a pixel function for determining a correction function on the basis of pixel output of a pixel located near a focus detection pixel; and a correction function selection unit 2172d for selecting a correction function for correcting the pixel output output from the focus detection pixel in the frame, on the basis of the optical function, the pixel function and the optical information. |