MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [讨论]大家来看看这段错哪了 (https://www.labfans.com/bbs/showthread.php?t=1046)

tqr591513792 2008-01-04 09:32

[讨论]大家来看看这段错哪了
 
:confused: 大家来看看这段错哪了
a=imread('f:\tu.jpg');
j=imnoise(a,'salt&pepper',0.02);
subplot(2,2,1),imshow(a)
subplot(2,2,2),imshow(j)
k=medfilt2(j);
subplot(2,2,3),imshow(k)
运行结果后出现??? Error using ==> imnoise
Unknown noise type: 'salt&pepper'.

Error in ==> e:\MATLAB6p5p1\work\zuoye.m
On line 2 ==> j=imnoise(a,'salt&pepper',0.02);

asdivy 2008-04-10 23:01

应该是'salt & pepper',有空格


所有时间均为北京时间。现在的时间是 05:10

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.