Investigations on colour fundus images for detection and grading of diabetic retinopathy using learning algorithms