Adding Noise to the Image
Afficher commentaires plus anciens
How do I apply "salt" noise to the grey - scale image. Function need to generate salt noise only not the pepper.
Réponse acceptée
Plus de réponses (1)
Arun Kumar
le 17 Juil 2014
1 vote
%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 commentaire
Steve
le 22 Juil 2014
Catégories
En savoir plus sur Images dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!