A supervised approach for automated detection of hemorrhages in retinal fundus images