An image processing device comprising: image acquisition means for acquiring multiple viewpoint images generated by pupil-division imaging, the multiple viewpoint images being different in viewpoint; characterized by first parallax amount calculation means for calculating a first parallax amount between viewpoint images for the multiple viewpoint images by a correlation method; storage means in which parallax correction information is stored, the parallax correction information indicating a relationship between the first parallax amount and a deviation amount in a parallax direction for corresponding object images, the deviation amount being a deviation amount between viewpoint images for the multiple viewpoint images and being caused by the pupil-division imaging; and second parallax amount calculation means for calculating a second parallax amount based on the first parallax amount and the parallax correction information stored in the storage means, the second parallax amount being an amount resulting from correcting the first parallax amount to the deviation amount in the parallax direction for the object images; wherein the deviation amount in the parallax direction for the object images is a deviation amount of peak positions of pixel values which are values of pixels comprising the object images between viewpoint images for the multiple viewpoint images, and the second parallax amount calculation means calculates the second parallax amount that is an amount resulting from correcting the first parallax amount to the deviation amount of the peak positions of the pixel values of the object images. image acquisition means for acquiring multiple viewpoint images generated by pupil-division imaging, the multiple viewpoint images being different in viewpoint; characterized by first parallax amount calculation means for calculating a first parallax amount between viewpoint images for the multiple viewpoint images by a correlation method; storage means in which parallax correction information is stored, the parallax correction information indicating a relationship between the first parallax amount and a deviation amount in a parallax direction for corresponding object images, the deviation amount being a deviation amount between viewpoint images for the multiple viewpoint images and being caused by the pupil-division imaging; and second parallax amount calculation means for calculating a second parallax amount based on the first parallax amount and the parallax correction information stored in the storage means, the second parallax amount being an amount resulting from correcting the first parallax amount to the deviation amount in the parallax direction for the object images; wherein the deviation amount in the parallax direction for the object images is a deviation amount of peak positions of pixel values which are values of pixels comprising the object images between viewpoint images for the multiple viewpoint images, and the second parallax amount calculation means calculates the second parallax amount that is an amount resulting from correcting the first parallax amount to the deviation amount of the peak positions of the pixel values of the object images.