
急急急跪求高手帮助编写小波变换应用于图像压缩的Matlab程序 只有20分都给了 20
woman图像经bior2.6小波进行三层小波分解,对低频子带先采用DCT变换,然后对其结果再采用Huffman编码;而高频子带零码区域多,对各高频子带先采用阈值量化,其...
woman图像经bior2.6小波进行三层小波分解,对低频子带 先采用DCT变换,然后对其结果再采用Huffman编码;而高频子带零码区域多,对各高频子带先采用阈值量化,其变换系数接近“零”或等于“零”,此时再对其采用行程编码。最后合成出压缩图像
展开
展开全部
h.color=[1 1 1]
load wmandril
figure(h)
subplot(1,2,1)
nbc=size(map,1)
colormap(gray(nbc))
image(wcodemat(X,nbc))
title('original image')
axis square
[C,S]=wavedec2(X,2,'db4')
thr=20
[Xcompress1,cmd,lxd,PERF0,PERFL2]=...
wdencmp('gbl',C,S,'db4',2,thr,'h',1)
subplot(1,2,2)
image(wcodemat(Xcompress1,nbc))
title(['compressed image threshold=',num2str(thr)])
axis square
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0
第二种
h.color=[1 1 1]
load wmandril
figure(h)
subplot(1,2,1)
nbc=size(map,1)
colormap(gray(nbc))
image(wcodemat(X,nbc))
title('original image')
axis square
[C,S]=wavedec2(X,2,'db4')
thr=20
[Xcompress1,cmd,lxd,PERF0,PERFL2]=...
wdencmp('gbl',C,S,'db4',2,thr,'h',1)
subplot(1,2,2)
image(wcodemat(Xcompress1,nbc))
title(['compressed image threshold=',num2str(thr)])
axis square
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0
load wmandril
figure(h)
subplot(1,2,1)
nbc=size(map,1)
colormap(gray(nbc))
image(wcodemat(X,nbc))
title('original image')
axis square
[C,S]=wavedec2(X,2,'db4')
thr=20
[Xcompress1,cmd,lxd,PERF0,PERFL2]=...
wdencmp('gbl',C,S,'db4',2,thr,'h',1)
subplot(1,2,2)
image(wcodemat(Xcompress1,nbc))
title(['compressed image threshold=',num2str(thr)])
axis square
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0
第二种
h.color=[1 1 1]
load wmandril
figure(h)
subplot(1,2,1)
nbc=size(map,1)
colormap(gray(nbc))
image(wcodemat(X,nbc))
title('original image')
axis square
[C,S]=wavedec2(X,2,'db4')
thr=20
[Xcompress1,cmd,lxd,PERF0,PERFL2]=...
wdencmp('gbl',C,S,'db4',2,thr,'h',1)
subplot(1,2,2)
image(wcodemat(Xcompress1,nbc))
title(['compressed image threshold=',num2str(thr)])
axis square
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0

2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
2010-06-17
展开全部
H.color=[1 1 1];
load wmandril;
figure(H);
subplot(1,2,1);
nbc=size(map,1)
colormap(gray(nbc));
image(wcodemat(X,nbc));
title('original image');
axis square;
thr_h=[16 19];
thr_d=[20 21];
thr_v=[22 23];
thr=[thr_h;thr_d;thr_v];
[Xcompress2,cxd,lxd,PERF0,PERFL2]=...
wdencmp('lvd',X,'db3',2,thr,'h');
subplot(1,2,2);
image(wcodemat(Xcompress2,nbc));
title('compressed image threshold=[16 19;20 21;22 23]');
axis square;
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0
load wmandril;
figure(H);
subplot(1,2,1);
nbc=size(map,1)
colormap(gray(nbc));
image(wcodemat(X,nbc));
title('original image');
axis square;
thr_h=[16 19];
thr_d=[20 21];
thr_v=[22 23];
thr=[thr_h;thr_d;thr_v];
[Xcompress2,cxd,lxd,PERF0,PERFL2]=...
wdencmp('lvd',X,'db3',2,thr,'h');
subplot(1,2,2);
image(wcodemat(Xcompress2,nbc));
title('compressed image threshold=[16 19;20 21;22 23]');
axis square;
disp('小波系数中设置0的系数个数百分比')
PERFL2
disp('压缩后图像剩余百分比')
PERF0
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询