wpt.2d(x, crystal.names=NULL, basis=NULL, cost.fun="entropy", wavelet="s8", n.levels=4, boundary="periodic", precondition=F, dual=F, analysis.filter=NULL, synthesis.filter=NULL, scale=NULL, thresh=NULL, p=2, prob=.75) iwpt.2d(x)
iwpt.2d returns an image if x is an object of class wpt.2d.
xx <- phone-mean(phone) par(mfrow=c(1,2)) thresh <- rep(3.7, 16) dd2 <- dwt.2d(xx, wavelet="s8", n.levels=3) ss1 <- shrink(dd2, thresh) zz1 <- reconstruct(ss1) image(zz1) # reconstructed by DWTcc2 <- wpt.2d(xx, basis="best.basis", wavelet="s8", n.levels=3) ss2 <- shrink(cc2, thresh) zz2 <- reconstruct(ss2) image(zz2) # reconstructed by best basis