1. An image processing apparatus which performs image processing on an image captured by an image capturing apparatus that includes (i) an imaging element, (ii) a main lens that condenses light from a subject toward the imaging element, and (iii) a micro lens array that is configured by a plurality of kinds of micro lenses with different focusing distances and that is disposed between the imaging element and the main lens and causes light transmitted through the main lens to form an image on the imaging element, the image processing apparatus comprising: an image processor that, in response to receiving a designation of a distance to a side of the subject in the image that is photographed by the image capturing apparatus, performs weighting for each image that is imaged by the plurality of kinds of micro lenses based on the distance so as to constitute one captured image, wherein the plurality of kinds of micro lenses comprise a first micro lens having a first focusing distance and a second micro lens having a second focusing distance that is greater than the first focusing distance, and wherein, in a case of the distance being greater than a predetermined distance, the image processor makes a first weighting value of a first image formed by the first micro lens smaller than a second weighting value of a second image formed by the second micro lens, and in a case of the distance being smaller than the predetermined distance, the image processor makes the first weighting value greater than the second weighting value.