An endoscope measures the topography of a surface. The endoscope contains a projection unit and an imaging unit. The projection unit and the imaging unit are arranged successively in relation to an axis of the endoscope. The configuration of the projection unit and the imaging unit arranged axially behind one another on the axis permits a significantly smaller endoscope configuration.