泊松噪声去除,MATLAB
问题描述:
我要补充盐&胡椒和泊松噪声,然后将其删除。我的代码:泊松噪声去除,MATLAB
clear all; close all; clc;
a = double(imread('spine.tif'))/255;
a1 = imnoise(a, 'salt & pepper', 0.015);
a2 = imnoise(a1, 'poisson');
b = medfilt2(a2);
grade= sum(sum(abs(a - b)));
disp(grade);
subplot(221); imshow(a);
subplot(222); imshow(a1);
subplot(223); imshow(a2);
subplot(224); imshow(b);
我使用medfilt2,因为我知道它是建议盐&胡椒,但我不知道如何删除泊松分布和提高我的等级功能?我正在尝试不同的过滤器,但我尝试的越多,成绩越差。
答
请看下面的例子:http://www.mathworks.com/help/images/remove-noise-from-images.html
I = imread('eight.tif');
imshow(I)
J = imnoise(I,'salt & pepper',0.02);
figure, imshow(J)
K = filter2(fspecial('average',3),J)/255;
figure, imshow(K)
L = medfilt2(J,[3 3]);
figure, imshow(L)
使用的平均滤波器之后中值滤波器。你似乎没有使用平均过滤器..
嗯感谢您的答案,但添加平均过滤器使等级功能变差 – user3748496 2014-09-03 13:01:09