Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error C2065: 'SiftFeatureDetector' : undeclared identifier

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 This article

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]

error C2065: 'SiftFeatureDetector' : undeclared identifier

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 This article -> (http://www.mattsheckells.com/opencv-asift-c-implementation/)

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]

error C2065: 'SiftFeatureDetector' : undeclared identifier

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-asift-c-implementation/)

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 SiftDescriptorExtractor extractor; // ERROR undeclared identifier
extractor.compute(timg, kps, desc); // ERROR undeclared identifier]
identifier