Contour-independent detection and classification of mammographic lesions