PDA

查看完整版本 : [求助]急!!!!!!!关于图片消噪


sqqssqq
2008-12-14, 12:58
要将以个加了高斯噪声的图片进行中值滤波要怎么做?请高手说说下

sqqssqq
2008-12-14, 13:05
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;
后面的是错误提示