An image sensor in which pixels, each having a photoelectric conversion region divided into a plurality of regions, are arranged two-dimensionally, the image sensor comprising:
- a first pixel, from the pixels, for which each of photoelectric conversion regions divided in a first direction receives a light beam that passes through a pupil region of an imaging optical system that corresponds to each of photoelectric conversion regions;
- a second pixel, from the pixels, for which each of photoelectric conversion regions divided in a second direction different to the first direction receives a light beam that passes through the pupil region of the imaging optical system that corresponds to each of photoelectric conversion regions,
- wherein the first pixel outputs signals having parallax in the first direction from the photoelectric conversion regions divided in the first direction, and
- the second pixel outputs signals having parallax in the second direction from the photoelectric conversion regions divided in the second direction;
- and
- an image processing circuit configured to generate, based on a first signal output from the first pixel and a second signal output from the second pixel, parallax images having a number of parallaxes that is more than a number of parallaxes included in each of the first signal and the second signal.