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!