Ridge and skeleton extraction from the wavelet transform