1. An image processing apparatus comprising: an image obtaining part configured to obtain a first image and a second image, the first image being an image generated by image capturing or generated by expanding part of the image generated by the image capturing, the first image including a first object image, the second image corresponding to an image captured at a higher image capturing magnification than that for the first image, and the second image including a second object image corresponding to part of the first object image; and a processing part configured to produce a third image whose resolution is higher than that of the first image by performing image processing on the first image using the second image as a constraint condition.