Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-10-23
年龄: 40
帖子: 1
声望力: 0 ![]() |
![]()
我的程序如下
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 尝试很多次!是不是图片格式没弄好? 请各位大侠帮助一下 |
![]() |
![]() |
![]() |
#2 |
高级会员
注册日期: 2008-11-01
年龄: 39
帖子: 406
声望力: 26 ![]() |
![]()
lz 根据错误的提示
All rows in the bracketed expression must have the same number of columns. 你的变量size中各行的列数不同 注意看一下你的图像的大小 Thx for reading. PS:若还算满意,直接点击“Thanks”,再次登陆时亦便于查看回答是否真的帮到你了。 个人观点 仅供参考 多多交流 相互学习 |
![]() |
![]() |
![]() |
#3 |
高级会员
注册日期: 2008-05-13
年龄: 44
帖子: 232
声望力: 21 ![]() |
![]()
对,断点运行到错误行处,看看X的维数,jpg格式图像可能是灰度或24位色或256色图,24位色图是3维的.wavedec2应该只支持2维.
__________________
工科'985'博士,(图像处理、分析及理解;模式识别;运动估计;数据分析等)定做程序、算法实现--qq:752105755 |
![]() |
![]() |