An algorithm for synthesis of biorthogonal and complex wavelets is described in detail. Examples of signal restoration and compression based on wavelets constructed are presented. Similarity of these wavelet bases to the Karhunen-Loeve basis is considered. A pattern of spatiotemporal development of a random signal over inhomogeneity scales is presented. Examples of expansion and compression of two-dimensional signals with filtering by directions are presented.