Search code examples
matlabimage-processingsignal-processingnoise-generator

Adding high frequency noise to images in matlab


The function imnoise adds noise to the image. How can I add only high frequency noise?


Solution

  • High frequency noise in appears mainly as "salt and pepper" noise. So to introduce this kind of noise, pick N pixels at random and change their intensities randomly. The randomness implicitly does the job of a high pass filter, because it is unlikely that many neighbouring pixels will be picked among the N.