Image analysis for automatic diagnosis of diabetic retinopathy.