error C2660:function does not take parameters
voidGaborFilteredImg(Matrix*FilteredImg_real,Matrix*FilteredImg_imag,Matrix*img,intsi...
void GaborFilteredImg(Matrix *FilteredImg_real, Matrix *FilteredImg_imag, Matrix *img, int side, double Ul, double Uh,
int scale, int orientation, int flag)
{
int h, w, xs, ys, border, r1, r2, r3, r4, hei, wid, s, n;
Matrix *IMG, *IMG_imag, *Gr, *Gi, *Tmp_1, *Tmp_2, *F_1, *F_2, *G_real, *G_imag, *F_real, *F_imag;
void Gabor(Matrix *Gr, Matrix *Gi, int s, int n, double Ul, double Uh, int scale, int orientation, int flag);
border = side;
hei = img->height;
wid = img->width;
/* FFT2 */
xs = (int) pow(2.0, ceil(log2((double)(img->height+2.0*border))));
ys = (int) pow(2.0, ceil(log2((double)(img->width+2.0*border))));
CreateMatrix(&IMG, xs, ys);
}
e:\3(1)\ms.h(72) : warning C4005: 'SWAP' : macro redefinition
e:\3(1)\matrix.h(31) : see previous definition of 'SWAP'
e:\3(1)\gabor.cpp(22) : error C2660: 'log2' : function does not take 1 parameters
e:\3(1)\gabor.cpp(23) : error C2660: 'log2' : function does not take 1 parameters
代码没有粘贴完全。每个函数的调用都有这个问题,请指点一下,好像是设置问题,但是不知道该怎么弄。
哪位有邮箱吗,我传代码,帮我解决一下吧! 展开
int scale, int orientation, int flag)
{
int h, w, xs, ys, border, r1, r2, r3, r4, hei, wid, s, n;
Matrix *IMG, *IMG_imag, *Gr, *Gi, *Tmp_1, *Tmp_2, *F_1, *F_2, *G_real, *G_imag, *F_real, *F_imag;
void Gabor(Matrix *Gr, Matrix *Gi, int s, int n, double Ul, double Uh, int scale, int orientation, int flag);
border = side;
hei = img->height;
wid = img->width;
/* FFT2 */
xs = (int) pow(2.0, ceil(log2((double)(img->height+2.0*border))));
ys = (int) pow(2.0, ceil(log2((double)(img->width+2.0*border))));
CreateMatrix(&IMG, xs, ys);
}
e:\3(1)\ms.h(72) : warning C4005: 'SWAP' : macro redefinition
e:\3(1)\matrix.h(31) : see previous definition of 'SWAP'
e:\3(1)\gabor.cpp(22) : error C2660: 'log2' : function does not take 1 parameters
e:\3(1)\gabor.cpp(23) : error C2660: 'log2' : function does not take 1 parameters
代码没有粘贴完全。每个函数的调用都有这个问题,请指点一下,好像是设置问题,但是不知道该怎么弄。
哪位有邮箱吗,我传代码,帮我解决一下吧! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询