📄 cwq8.m
字号:
load sinsin
image(X);
colormap(map);
colorbar;
%从分解系数中提取近似和细节
[cA1,cH1,cV1,cD1]=dwt2(X,'bior3.7');
A1=upcoef2('a',cA1,'bior3.7',1);
H1=upcoef2('h',cH1,'bior3.7',1);
V1=upcoef2('v',cV1,'bior3.7',1);
D1=upcoef2('d',cD1,'bior3.7',1);
%显示近似和细节
figure(2);
colormap(map);
subplot(221);
image(wcodemat(A1,192));
title('近似A1');
subplot(222);
image(wcodemat(H1,192));
title('水平细节H1');
subplot(223);
image(wcodemat(V1,192));
title('垂直细节V1');
subplot(224);
image(wcodemat(D1,192));
title('对角细节D1');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -