wavelet 3d spatial to pyramid