可以使用下面这个函数添加噪声
imnoise
滤波的方法请查看参考资料
J = IMNOISE(I,TYPE,...) Add noise of a given TYPE to the intensity image
I. TYPE is a string that can have one of these values:
'gaussian' Gaussian white noise with constant
mean and variance
'localvar' Zero-mean Gaussian white noise
with an intensity-dependent variance
'poisson' Poisson noise
'salt & pepper' "On and Off" pixels
'speckle' Multiplicative noise
Depending on TYPE, you can specify additional parameters to IMNOISE. All
numerical parameters are normalized; they correspond to operations with
images with intensities ranging from 0 to 1.
更详细的可以查看帮助
祝你学习愉快!
椒盐?校验?