Automatic optic disc segmentation for analysis of the optic nerve head