Error using imnoise>ParseInputs (line 227)
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vetri veeran
le 24 Oct 2014
Réponse apportée : Geoff Hayes
le 24 Oct 2014
code:
k = imread('filter.jpg'); l = imnoise(k,'salt & papper',0.02); I got an error as
Error using imnoise>ParseInputs (line 227) Unknown noise type: 'salt & papper'.
Error in imnoise (line 85) [a, code, classIn, classChanged, p3, p4] = ParseInputs(varargin{:});
help me in this regard.
Thanks in advance
0 commentaires
Réponse acceptée
Geoff Hayes
le 24 Oct 2014
You have a typo in the noise type - it should be pepper and not papper. Try the following instead
imnoise(k,'salt & pepper',0.02);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!