Debug Assertion Failed Expression: _pFirstBlock == pHead using OpenCV and C++ trying to call SurfFeatureDetector

前端 未结 3 1768
春和景丽
春和景丽 2021-02-09 01:24

I have this function in C++ using OpenCV:

vector test(Mat img)
{
  int minHessian = 400;
  SurfFeatureDetector detector( minHessian );

  vector&         


        
3条回答
  •  忘了有多久
    2021-02-09 02:03

    I've found my mistake. I accidentally copied the openCV-dlls of the VC12 folder, because I forgot that Visual Studio 2012 is VC11. Now it works. Maybe this will help someone else who has the same problem and copied the dlls of the wrong folder.

提交回复
热议问题