%load woman;
I=imread('bubble.tif');
[cA1,cH1,cV1,cD1] = dwt2(I,'db1');
A1 = upcoef2('a',cA1,'db1',1);
H1 = upcoef2('h',cH1,'db1',1);
V1 = upcoef2('v',cV1,'db1',1);
D1 = upcoef2('d',cD1,'db1',1);
colormap(map);
subplot(2,3,1); image(wcodemat(A1,192));
title('Approximation A1')
subplot(2,3,2); image(wcodemat(H1,192));
title('Horizontal Detail H1')
subplot(2,3,3); image(wcodemat(V1,192));
title('Vertical Detail V1')
subplot(2,3,4); image(wcodemat(D1,192));
title('Diagonal Detail D1')
subplot(2,3,5); image(I);
title('Original Image')
te=0;re=0;
e=0;
f=0;
g=0;
h=0;
[m n]=size(cA1);
for i=1:1:m
for j=1:1:n
e= e +int32( cA1(i,j)*cA1(i,j));
f= f +int32( cH1(i,j)*cH1(i,j));
g= g +int32( cV1(i,j)*cV1(i,j));
h= h +int32( cD1(i,j)*cD1(i,j));
end
end
e
f
g
h
te=e+f+g+h;
te
s=size(I);
cD1 = zeros(s, s, 'uint32');
X = idwt2(cA1,cH1,cV1,cD1,'db1',s);
[m n]=size(X);
for i=1:1:m
for j=1:1:n
re= re +int32( X(i,j)*X(i,j));
end
end
re
subplot(2,3,6); image(X);
title('Reconstructed Image')
%figure,imhist(X)
RI.rar_The Image
版权申诉
4 浏览量
2022-07-14
13:41:35
上传
评论
收藏 8KB RAR 举报
![avatar](https://profile-avatar.csdnimg.cn/f3b7c8d80edb45ee84389e2d10b9d009_weixin_42662293.jpg!1)
局外狗
- 粉丝: 69
- 资源: 1万+
最新资源
- ParaStor300S 对象存储服务接口参考V1.0(V4.0.X).pdf
- ParaStor300S产品FAQ.doc
- SBM模型、超效率SBM模型代码(原始面板数据、MATLAB)
- 基于汇川AM系列PLC做的CNC加工
- ParaStor300S技术培训PPT-面向售前-V1.4.pptx
- 在MATLAB中,你可以使用多种函数和工具来创建各种类型的图形 以下是一些基本的MATLAB绘图命令和示例:
- 1_网络2204班 30 王磊 open flow 协议分析实践.docx
- 探索 v-on 之奥秘二:事件及各类修饰符的深度剖析与案例展示
- k8s基础教程与相关面试
- TerraScan中文用户指南
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)