I am facing this gruesome problem in the middle of an urgent work. So if someone can help out quickly, I would be grateful...
write command for wavelet packet tree does not seem to work
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to create an empty wavelet packet tree and filling up its terminal nodes with coefficients. In short following is my 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);
for i = 1:length(u)
x = read(T,'cfs',u(i));
write(T2,'cfs',u(i),x);
end
However when I display T2, i find that its terminal nodes contain no information except Zero matrics of appripriate sizes .. What is the reason and how do I correct this problem ?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AI for Signals and Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!