feature extraction from contours