Implementing SURF using iplimage in opencv and c++ unresolved externals

asked 2014-05-11 15:51:30 -0600

shahd gravatar image

'm facing a problem with implementing SURf using Mat because of heap, so I tried to use iplimage. I used the code of this guy SURF using iplimage I've got errors:

unresolved external symbol _cvExtractSURF unresolved external symbol _cvSURFParams

I added these

#include "opencv2/nonfree/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <opencv2/legacy/legacy.hpp>

with cv::initModule_nonfree(); in main but it didnt work. does anyone know what is the problem ?

edit retag flag offensive close merge delete

Comments

You are trying to execute C-API code using the C++ include headers. That will never work. I suggest leaving those IplImages and C-API. Show us your non working C++ and Mat code and we will help you out there with problems. The C-API is depricated and will disappear soon!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-12 02:20:52 -0600 )edit

this link contains a code for real time surf using mat https://github.com/doczhivago/rtObjectRecognition/blob/master/main.cpp

it gives me heap corruption exception or memory location exception

shahd gravatar imageshahd ( 2014-05-12 05:55:23 -0600 )edit

it gives me heap exception or memory location exception

shahd gravatar imageshahd ( 2014-05-12 05:58:22 -0600 )edit

did you check that csv ? is it working fine with the code ? and did you check the path of your images ?

FLY gravatar imageFLY ( 2014-05-12 12:13:38 -0600 )edit