image processing - writing coeffcients to a wavelet packet tree in MATLAB -


i trying create empty wavelet packet tree , filling terminal nodes coefficients. in short following simple code :-

clc,close all,clear all; img = imread('barbara.png'); t = wpdec2(img,2,'db4'); t2 = cfs2wpt('db4',size(img),tnodes(t),4); u = tnodes(t); = 1:length(u)     x = read(t,'cfs',u(i));     write(t2,'cfs',u(i),x); end 

however when display t2, find terminal nodes contain no information except 0 matrics of appripriate sizes .. reason , how correct problem ?


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -