基于matlab的图像小波降噪程序

m = imread('C:\\sdk\\t.jpg');

colormap('default');
subplot(2,2,1), image(m);
title('original image');
axis('square');

[thr, sorh, keepapp] = ddencmp('den', 'wv', m);
[xc, cxc, lxc, perf0, perf2] = wdencmp('gbl', m, 'sym4', 2, thr, sorh, keepapp);
subplot(2,2,2), image(uint8(xc));
title('denoised image');
axis('square');
imwrite(uint8(xc), 'result.jpg', 'jpg');


l1 = m(:, 200);
subplot(2,2,3);
plot(l1);

l2 = xc(:, 200);
subplot(2,2,4);
plot(l2);

运行效果:

基于matlab的图像小波降噪程序

你可能感兴趣的:(C++,c,C#,matlab)