Applying the discrete wavelet transform