Ask Your Question
0

error C2065: 'SiftFeatureDetector' : undeclared identifier

asked 2016-07-03 18:53:40 -0500

ven gravatar image

updated 2016-07-03 18:57:34 -0500

I'm trying to use SiftFeatureDetector but i'm having undeclared identifier error. But i imported the libraries as follows. Any help is appreciated. ( i followed article -> (http://www.mattsheckells.com/opencv-a...)

imported libraries

#include <opencv2/features2d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>

I'm using opencv 2.4

SiftDescriptorExtractor extractor; // ERROR undeclared identifier
extractor.compute(timg, kps, desc); // ERROR undeclared identifier
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-04 02:50:18 -0500

Missing gravatar image

In OpenCV 2.4 the SURF and SIFT algorithms moved to nonfree folder. Use this instead:

#include <opencv2/nonfree/features2d.hpp>
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-03 18:53:40 -0500

Seen: 482 times

Last updated: Jul 04 '16