openCV SURF error
openCV SURF error
我使用的是opencv 2.44, visual studio c++ 2010当我编译时,我得到这个错误
错误1错误LNK2019:未解析的外部符号"public: __thiscall cv::SURF::SURF(void)"(??0SURF@cv@@QAE@XZ)参考function _main c: users user desktop project prjprjsh1.obj撮合下
#include <opencv2imgprocimgproc_c.h>
#include <stdio.h>
#include <math.h>
#include <opencvhighgui.h>
#include <opencvcv.h>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/nonfree/features2d.hpp>
using namespace cv;
void main(){
char i;
Mat image,img,ref;
ref=imread("hh.jpg");
// create window to show image
namedWindow("window", CV_WINDOW_AUTOSIZE);
namedWindow("costel", CV_WINDOW_AUTOSIZE);
namedWindow("fanel", CV_WINDOW_AUTOSIZE);
Mat ig,ib,ibb;
Mat bkg;
Mat prev;
Mat stor;
cvtColor(ref, ref, CV_BGR2GRAY);
FastFeatureDetector detector(15);
vector<KeyPoint> keypoints1;
detector.detect(ref, keypoints1);
SurfDescriptorExtractor extractor;
Mat descriptors1;
extractor.compute(ref, keypoints1, descriptors1);
....
这似乎是我在设置项目属性的问题。属性->链接器->输入->额外的依赖关系VS.可能是你仔细检查,如果你添加了opencv_features2d244。opencv_nonfree244.lib
- 将所有需要使用的DLL复制到DEBUG文件夹或exe所在的位置。
- 检查所有源路径和头路径
好运。你可能是一个丢失的DLL神话,找到opencv_nonfree244.dll, opencv_features2d244.dll和所有其他DLL在你的cv安装文件夹,并将它们复制到文件夹应该修复它。
相关文章:
- "error: no matching function for call to"构造函数错误
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 使用 LuaBridge 将 LuaJIT 绑定到C++会导致"PANIC: unprotected error"
- OpenMP卸载说'fatal error: could not find accel/nvptx-none/mkoffload'
- C++错误:"error: int aaa::bbb is protected within this context"
- 尝试链接我的着色器时,我收到错误代码"error c5145 must write to gl_position"
- C++,在int数组中输入字符串或字符会输出0,而不是ascii或error
- 使用 cmake 的 LLVM 构建在 tsan_libdispatch_mac.cc 期间失败; "Error: conflicting types for ..."
- C++ "error: invalid use of void expression"
- struct.error:解压缩 C++ 结构时,解包需要 288 字节的缓冲区
- 如何修复"error: ‘_1’ was not declared in this scope"?
- 从不同目录执行时"symbol lookup error:",否则从构建目录执行时按预期工作
- 对象声明中的模板"error: expected expression"
- 在C++中使用 Catch 测试框架编译错误"error: expected ';' at end of declaration list"
- OpenCV 3.4.1 error readNetFromTensorflow 无法在 cv::d nn::ReadProtoFromBinaryFile 中打开 .pb
- 已解决 - C++ 的崇高文本中的"fatal error: opencv: no such file or directory"
- 为什么我会"error: expected expression"?
- OpenCV GPU SURF ROI error?
- openCV SURF error
- OpenCV SURF extractor.compute error