Automatic mass segmentation in mammographic images