Error using imnoise>ParseInputs (line 227)
13 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Geoff Hayes
2014-10-24
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!