MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 为什么用conv2的时候提示出错? (https://www.labfans.com/bbs/showthread.php?t=10849)

Juicy 2010-03-02 00:00

为什么用conv2的时候提示出错?
 
??? Undefined function or method 'conv2' for input arguments of type 'double' and attributes 'full 3d real'.


程序如下:

img = double((imread('Sample.jpg')));

x = [floor(-3.0*sigma+0.5):floor(3.0*sigma+0.5)];
G = exp(-x.^2/(2*sigma^2));
G = G/sum(sum(G));
D = -2*(x.*exp(-x.^2/(2*sigma^2)))/(sqrt(2*pi)*sigma^3);

img1 = conv2(img,D,'same');


所有时间均为北京时间。现在的时间是 12:46

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