Optometrists perform eye exams and prescribe glasses and contacts, while ophthalmologists diagnose and treat more complex eye diseases and perform eye surgery. See an ophthalmologist for injuries, infections, vision changes, or major eye problems.