【问题标题】:Extract noise vector after using imnoise使用 imnoise 后提取噪声向量
【发布时间】:2017-05-24 09:22:28
【问题描述】:

我有一个向量,其中添加了高斯白噪声(均值为零,标准差为 0.001)。更具体地说,我在 MATLAB 中使用了imnoise 函数:

pixel_noisy = imnoise(original_pixel, 'Gaussian', 0, 0.001);

我的问题:有没有办法提取已添加到原始像素的噪声向量?使用imnoise 后已自动添加噪声向量。尽管如此,有没有可能知道这个噪声向量是什么?

任何帮助将不胜感激!

【问题讨论】:

    标签: matlab image-processing


    【解决方案1】:

    原始图像和噪声图像之间存在以下关系:

    pixel_noisy = original_pixel + noise
    

    因此,可以使用减法计算噪声:

    noise = original_pixel - pixel_noisy
    

    验证

    您可以通过检查噪声是否确实是高斯分布来验证此方法:

    n = 100; % size of the image
    original_pixel = rand(n, n); % constructs a random image
    pixel_noisy = imnoise(original_pixel, 'Gaussian', 0, 0.001); % add noise
    noise = pixel_noisy - original_pixel; % calculate the noise
    
    mean = mean2(noise) % check the mean (should be 0)
    variance = std2(noise)^2 % check the variance (should be 0.001)
    

    对于较大的 n 值,meanvariance 应该更好地匹配它们所需的值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-07
      • 2016-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-13
      相关资源
      最近更新 更多