Anyone who has ever been examined by an ophthalmologist has probably undergone a rather unusual procedure.