Cosine Packet Analysis in Adaptively Chosen Basis
[bb,stats,coef] = CP2dTour(img,MaxDeep,titlestr)
2-d image; size n by n, n dyadic
integer; limit on max depth of tree in best basis search
string; name of signal
basis quadtree of best basis
stat quadtree of best basis
coefficients in best basis
Perform an adaptive cosine packet analysis on the given image, selecting the best basis and then plotting the CP coefficients for this basis along with the image overlaid by its 2-d partition.