Measurement of optic disc parameters on digital fundus photographs: algorithm development and evaluation