请教问题:有关conv2函数的程序代码
以下是部分代码:I=imread('rice.bmp');
Wx = floor((5/2)*sigma);
if Wx < 1
Wx = 1;
end
x = [-Wx:Wx];
g = exp(-(x.^2)/(2*sigma^2));
gp = -(x/sigma.^2).*exp(-(x.^2)/(2*sigma^2));
Ix = conv2(conv2(I,-gp,'same'),g','same');
Iy = conv2(conv2(I,g,'same'),-gp','same');
想请教一下,Ix和Iy表示的是?可不可以用gradient(Ix)来求梯度?