An endoscope measures a specimen using a stripe image formed by projecting a light and dark pattern on the specimen. The endoscope includes an insertion portion having an elongated shape, an imaging unit provided at a distal portion of the insertion portion and configured to acquire an image of the specimen, a lighting unit configured to illuminate an observation field of view of the imaging unit, and a pattern projector having a light source configured to emit projection light to project the light and dark pattern on the specimen. The pattern projector generates a region, in which the light and dark pattern is not projected, in at least one end of a direction in which stripes of the light and dark pattern are arranged in an imaging field of view of the imaging unit, in a state in which the light and dark pattern is projected on the specimen.