Automated feature extraction for early detection of diabetic retinopathy in fundus images