An ophthalmologist is a medical doctor (eye specialist) who diagnoses and treats eye disorders while an optometrist is trained to perform an eye examination and can prescribe corrective glasses.