Wavelet decomposition and reconstruction