Eye doctors use this method to detect corneal thickness. There are two way to perform measurements:
Non-contact method (more common) with measurement in the centre of cornea using a camera. Contact method - as the name suggests, the eye touches the probe that does the measurement, usually an ultrasound device. This method is more accurate, as the measurement is made in several locations. Local anesthetics are required for this procedure.