Wavelet contour classification