1. A method of classifying an optic nerve cup, a blood vessel, and optic nerve rim of an eye from a retinal image comprising: receiving a retinal image; determining a feature vector for a candidate pixel in the retinal image; and classifying the candidate pixel as a cup pixel, a blood vessel pixel, or a rim pixel based on the feature vector using a trained classifier.