1. An imaging device comprising: an imaging unit that acquires a plurality of images including an image in which at least a main subject is in focus, by discretely moving a focus position and successively capturing each of the plurality of images; an image processing unit that executes image processing with respect to at least one of a reference image or a non-reference image other than the reference image, to bring degrees of blur of the reference image and the non-reference image closer to one another, the reference image being the image in which the main subject is in focus among the plurality of images acquired by the imaging unit; a detection unit that detects corresponding points of a subject in the reference image and the non-reference image, subsequent to execution of the image processing by the image processing unit; a deformation unit that deforms the non-reference image before execution of the image processing by the image processing unit such that positions of the corresponding points detected by the detection unit coincide; a generation unit that generates a blur-adjusted image on the basis of the reference image and the non-reference image that is deformed by the deformation unit; and a recording unit that records the blur-adjusted image generated by the generation unit at a recording medium.