【问题标题】:Poisson noise removal, Matlab泊松噪声去除,Matlab
【发布时间】:2014-09-03 20:38:15
【问题描述】:

我必须添加椒盐噪声和泊松噪声,然后删除它们。我的代码:

    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,因为我知道它被建议用于盐和胡椒,但我不知道如何去除泊松并提高我的成绩功能?我尝试了不同的过滤器,但尝试越多,成绩就越差。

【问题讨论】:

    标签: matlab


    【解决方案1】:

    看这个例子: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)
    

    先使用平均滤波器,然后使用中值滤波器。您似乎没有使用平均过滤器..

    【讨论】:

    • 嗯,谢谢您的回答,但添加平均过滤器会使成绩功能变差
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-15
    • 2013-10-17
    • 2015-09-26
    • 2019-06-03
    • 1970-01-01
    • 2013-02-13
    • 2013-03-14
    相关资源
    最近更新 更多