Adding Noise to the Image
Mostra commenti meno recenti
How do I apply "salt" noise to the grey - scale image. Function need to generate salt noise only not the pepper.
Risposta accettata
Più risposte (1)
Arun Kumar
il 17 Lug 2014
1 voto
%Prepare workspace
clear ; clc; close all;
%Read Imag
I=imread('cameraman.tif');
%create a random matrix
randM=rand(size(I));
% default density
d=.05;
%saturated value
randM(randM<d)=255;
%Add noise
I=uint8(double(I)+randM);
%show image
imshow(I)
1 Commento
Steve
il 22 Lug 2014
Categorie
Scopri di più su Images in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!