Error using imnoise>ParseInputs (line 227)

13 ビュー (過去 30 日間)
vetri veeran
vetri veeran 2014 年 10 月 24 日
回答済み: Geoff Hayes 2014 年 10 月 24 日
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

採用された回答

Geoff Hayes
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 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by