查看单个帖子
旧 2008-12-14, 13:05   #2
sqqssqq
初级会员
 
注册日期: 2008-10-16
年龄: 37
帖子: 14
声望力: 17
sqqssqq 正向着好的方向发展
默认 回复: [求助]急!!!!!!!关于图片消噪

I=imread('football.tif');
J=imnoise(I,'salt & pepper',0.02);
K=filter2(fspecial('average',3),J)/255;
inshow(K)
这是我写的加了椒盐噪声和均平处理可由错误,哪位大虾看看!!!
??? Undefined function or method 'conv2' for input arguments of type 'double' and attributes 'full 3d real'.

Error in ==> filter2 at 73
y = conv2(hcol, hrow, x, shape);

Error in ==> Untitled3 at 3
K=filter2(fspecial('average',3),J)/255;
后面的是错误提示
sqqssqq 当前离线   回复时引用此帖