% % load tire
% % figure
% % subplot(1,2,1)
% % imagesc(X)
% % colormap(gray)
%
% load tire;
% figure
% subplot(2,2,2)
% imagesc(X)
% colormap(gray)
%
% % X contains the loaded image.
% % map contains the loaded colormap.
% nbcol = size(map,1);
%
% % Perform single-level decomposition
% % of X using db1.
% [cA1,cH1,cV1,cD1] = dwt2(X,'db1');
%
% % Images coding.
% cod_X = wcodemat(X,nbcol);
% cod_cA1 = wcodemat(cA1,nbcol);
% cod_cH1 = wcodemat(cH1,nbcol);
% cod_cV1 = wcodemat(cV1,nbcol);
% cod_cD1 = wcodemat(cD1,nbcol);
% dec2d = [...
% cod_cA1, cod_cH1; ...
% cod_cV1, cod_cD1 ...
% ];
% figure
% subplot(2,2,1)
% imagesc(dec2d)
% colormap(gray)
%new
load tire
figure
subplot(3,3,1)
imagesc(X)
colormap(gray);title('original image');
% X contains the loaded image.
% Perform decomposition at level 2
% of X using db4.
[c,s] = wavedec2(X,2,'db4');
% Reconstruct approximation and details
% at level 1, from coefficients.
% This can be done using wrcoef2, or
% equivalently using:
%
% Step 1: Extract coefficients from the
% decomposition structure [c,s].
%
% Step 2: Reconstruct using upcoef2.
siz = s(size(s,1),:);
ca1 = appcoef2(c,s,'db4',1);
% figure
subplot(3,3,2)
imshow(ca1);title('approximation coeffi.');
imagesc(ca1)
% colormap(gray)
a1 = upcoef2('a',ca1,'db4',1,siz);
% figure
subplot(3,3,3)
imshow(a1);title('approximation coeffi. reconstructed by db4');
% imagesc(a1)
% colormap(gray)
chd1 = detcoef2('h',c,s,1);
% figure
subplot(3,3,4)
imshow(chd1);title('horizontal coeffi.');
% imagesc(chd1)
% colormap(gray)
hd1 = upcoef2('h',chd1,'db4',1,siz);
% figure
subplot(3,3,5);
imshow(hd1);title('horizontal coeffi. reconstructed by db4');
% imagesc(hd1)
% colormap(gray)
cvd1 = detcoef2('v',c,s,1);
% figure
subplot(3,3,6)
imshow(cvd1);title('vertical coeffi.');
% imagesc(cvd1)
% colormap(gray)
vd1 = upcoef2('v',cvd1,'db4',1,siz);
% figure
subplot(3,3,7)
imshow(vd1);title('vertical coeffi reconstructed by db4');
% imagesc(vd1)
% colormap(gray)
cdd1 = detcoef2('d',c,s,1);
subplot(3,3,8)
imshow(cdd1);title('digonal coeffi.');
% imagesc(cdd1)
% colormap(gray)
dd1 = upcoef2('d',cdd1,'db4',1,siz);
% figure
subplot(3,3,9)
imshow(dd1);title('digonal coeffi reconstructed by db4');
% imagesc(dd1)
% colormap(gray)
delet.rar_denoising image
版权申诉
61 浏览量
2022-07-14
21:47:01
上传
评论
收藏 807B RAR 举报
朱moyimi
- 粉丝: 65
- 资源: 1万+
最新资源
- 海信智能电视刷机数据 LED42K330X3D(0000) 生产用软件数据 务必确认机编一致 强制刷机 整机USB升级程序
- shujudaochuceshi
- learn-ruby.zip
- test111111111111111111
- face-detect.ipynb
- 以下是一些关于ACM(国际大学生程序设计竞赛)、NOI(全国青少年信息学奥林匹克竞赛)以及CSP(全国青少年信息学奥林匹克竞赛提
- 是一些电子设计竞赛(电赛)经验分享,包括备赛策略、项目管理、团队合作和比赛期间的注意事项
- 全能运行库修复工具DirectX Repair v4.1.0.30770
- las格式点云数据使用详解(附VS编译好的LAStools工具)
- KRPano插件一键解密大师1.4.0 (解压密码1234)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈