10100529
2009-05-07, 18:59
我的程序如下
I=imread('5.jpg');
[X,map]=gray2ind(I,256);
subplot(121);image(X);
colormap(map);
[c,l]=wavedec2(X,5,'db3');
[thr,sorh,keepapp]=ddencmp('cmp','wv',I);
[Xcmp,cxc,lxc,perf0,perfl2]=wdencmp('gbl',c,l,'db3',5,thr,sorh,keepapp);
subplot(122);image(Xcmp);
colormap(map);
错误报告
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
Error in ==> wavedec2 at 54
s = [size(x);s]; % store size
尝试很多次!是不是图片格式没弄好?
请各位大侠帮助一下
I=imread('5.jpg');
[X,map]=gray2ind(I,256);
subplot(121);image(X);
colormap(map);
[c,l]=wavedec2(X,5,'db3');
[thr,sorh,keepapp]=ddencmp('cmp','wv',I);
[Xcmp,cxc,lxc,perf0,perfl2]=wdencmp('gbl',c,l,'db3',5,thr,sorh,keepapp);
subplot(122);image(Xcmp);
colormap(map);
错误报告
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
Error in ==> wavedec2 at 54
s = [size(x);s]; % store size
尝试很多次!是不是图片格式没弄好?
请各位大侠帮助一下