Takes a nondecimated wavelet packet transform, takes the packets one packet
at a time and stores them in a matrix. The packets are rotated on extraction
and storage in the matrix in an attempt to align them, they are also
optionally transformed by trans. The rotation is performed
by compgrot.
Note that the coefficients are of some series, not the basis functions
themselves.