- File path in the line 1 is correct?
- 3rd input argument of imnoise function should be separated by ','
- imfilter function should be used in th eline 4, instead of filter2 function
- uint8 in the last line can be deleted
I cannot get the output, Image processing
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I cannot get the output of this code, I don't understand where problem is. Thank you
I=imread('Desktop/mak/exp.jpg');
isp=imnoise(I,'salt & pepper' 0.1);
a=fspecial('average');
a1=filter2(a,isp);
figure,imshow(uint8(a1));
0 件のコメント
回答 (1 件)
Akira Agata
2019 年 6 月 24 日
I think several points should be checked:
The following is an example.
I = imread('exp.jpg');
isp = imnoise(I,'salt & pepper',0.1);
a = fspecial('average');
a1 = imfilter(isp,a);
figure;imshow(a1);
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!