Characterization of mammographic masses using a gradient-based segmentation algorithm and a neural classifier