figure15.m
来自「是一本教科书的各个章节的源程序代码,适合初学数字图像的人」· M 代码 · 共 20 行
M
20 行
clear
load belmont1;
subplot(221); image(X); colormap(map);
title('原始图像');
axis square
init=2055615866; randn('seed', init)
x=X+38*randn(size(X));
subplot(222); image(x); colormap(map);
title('含噪声图像');
axis square;
[c, s]=wavedec2(x, 2, 'sym4');
a1=wrcoef2('a', c, s, 'sym4', 1);
subplot(223); image(a1);
title('第一次去噪图像');
axis square;
a2=wrcoef2('a', c, s, 'sym4', 2);
subplot(224); image(a2);
title('第二次去噪图像');
axis square;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?