Deformable Contours: Modeling, Extraction, Detection and Classification