A method is proposed for automatically locating the optic disc or the optic cup in an image of the rear of an eye. A portion of the image containing the optic disc or optic cup is divided into sub-regions using a clustering algorithm. Biologically inspired features, and optionally other features, are obtained for each of the sub-regions. An adaptive model uses the features to generate data indicative of whether each sub-region is within or outside the optic disc or optic cup. The result is then smoothed, to form an estimate of the position of the optic disc or optic cup.