最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

如何添加泊松噪声和高斯噪声?

SEO心得admin143浏览0评论
本文介绍了如何添加泊松噪声和高斯噪声?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将高斯噪声和泊松噪声添加到图像中.

I'm trying to add Gaussian and Poisson noise to an image.

我已尝试如下实现此目标,但结果却不是我所期望的.

I have been tried to implement this as follows but the result is not what I was expecting.

I = imread('eight.tif'); J = imnoise(I,'gaussian',0, 0.02); %mean variance figure, imshow(I), figure, imshow(J) P = imnoise(I,'poisson'); figure, imshow(P) K = J+P; figure, imshow(K)

如何正确添加泊松噪声和高斯噪声?

How do I correctly add Poisson noise and Gaussian noise?

推荐答案

您应该将 imnoise 应用于 J ,而不是 I .

You should be applying imnoise to J, not to I.

K = imnoise(J,'poisson'); figure, imshow(K)

无噪音已经增加了图像的噪点,因此添加 J + P 会将图像添加到自身中,另外到已经添加的噪音.

imnoise already adds the noise to your image, so adding J+P will add the image to itself, in addition to the already-added noise.

发布评论

评论列表(0)

  1. 暂无评论