代码:
for (int j = 0; j<4; j++)
{
int kernel_size = 3;
Mat dest;
double sig = 5, th = 0, lm = 8, gm = 0.02, ps = 0;
cv::Mat kernel = cv::getGaborKernel(cv::Size(kernel_size,kernel_size), sig, theta[j], lm, gm, ps, CV_32F);
filter2D(src_f, dest, CV_32F, kernel);
destArray.push_back(dest);
}
错误getGaborKerbel不是cv :(
的成员 37 28 F:\main.cpp [Error] 'getGaborKernel' is not a member of 'cv'
答案 0 :(得分:1)
我遇到了同样的问题并且正在寻找我发现必须包含
的解决方案imgproc库
如下:
#include <opencv2/imgproc/imgproc.hpp>
问候。