要将以个加了高斯噪声的图片进行中值滤波要怎么做?请高手说说下
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;
后面的是错误提示
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.