reconstruct the methods for extracting feature contours