An imaging device of the present invention comprises an imaging section for photoelectrically converting a subject image, and outputting image data, an aperture control section for narrowing subject light flux at a first aperture value and a second aperture value, a shooting control section for, in response to a release instruction, imaging a first image at the first aperture value and, reading out first image data from the imaging section while simultaneously carrying out a stopping down operation to the second aperture value, imaging a second image at the second aperture value and, reading out second image data from the imaging section, and an image processing section for detecting an amount of variation in contrast value for each location in the first image data and the second image data, and carrying out processing to blur at an intensity of blurring according to the amount of variation between each location.