1. An image processing method comprising: acquiring multiple parallax images produced by image capturing of an object, the parallax images having a parallax to one another; acquiring, by using the respective parallax images as base images, relative difference information on a relative difference between each of the base images and at least one other parallax image in the multiple parallax images; and detecting an unwanted component contained in each of the parallax images by using the relative difference information.