Polyp localization and segmentation in colonoscopy images by means of a model of appearance for polyps