Adaptive Segmentation Using Wavelet Transform Definition