An image sensor that captures an image of light from a predetermined depth of a subject includes: a photoelectric converter that photoelectrically converts light including interference light of light from the subject and reference light; and a discrimination unit that locks in and detects a signal component having an interference frequency in an interference light component corresponding to the predetermined depth from a signal output from the photoelectric converter.