Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6108949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:21:02+00:00 2026-05-23T14:21:02+00:00

I am using VS 2008 with OpenCV 2.1 installed as per the installation guide.

  • 0

I am using VS 2008 with OpenCV 2.1 installed as per the installation guide. FeatureDetector/SurfFeatureDetector are listed as classes in the documentation, but they are considered “syntax error : identifier ‘SurfFeatureDetector”

This is pretty much the entirety of my code.

#include "cv.h"
#include "highgui.h"

Ptr<FeatureDetector> *detect = new SurfFeatureDetector();

I’ve tried a bunch of random combinations to get this to work. How can I initialize a featuredetector?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:21:03+00:00Added an answer on May 23, 2026 at 2:21 pm

    I think you have installation problem, try resinstalling from here: sourceforge.net/projects/opencvlibrary/files/opencv-win/2.2

    anther other option is that your precompiler already has __OPENCV_OLD_CV_H__ defined.
    Try undefining it before #include "cv.h"

    When you type #include "cv.h"
    It automatically should include featurs2d. in fact cv.h includes the following:

    #include "opencv2/core/core_c.h"
    #include "opencv2/core/core.hpp"
    #include "opencv2/imgproc/imgproc_c.h"
    #include "opencv2/imgproc/imgproc.hpp"
    #include "opencv2/video/tracking.hpp"
    #include "opencv2/features2d/features2d.hpp"
    #include "opencv2/flann/flann.hpp"
    #include "opencv2/calib3d/calib3d.hpp"
    #include "opencv2/objdetect/objdetect.hpp"
    #include "opencv2/legacy/compat.hpp"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently made a project using opencv and c++ in visual 2008 When i
Using VB 2008 Express. Attaching code to buttons when they're clicked is easy when
Using VS2005/2008 as a resource editor, one of the options in the Add Resource
Using MSSQL 2008 and XQUERY Consider the following XML stored in a table: <ROOT>
I am using VS 2008 with SP1 and the IE 8 beta 2. Whenever
We are using TFS 2008 for project managmeent and I am looking for a
While generating charts using RS 2008 betas, RC0 and such., I never specified any
I am using Installshield 2008 Developer Edition and need to run SQL scripts against
I'm using VS 2008 to create a C++ DLL (not managed) project and I
I am using VS 2008 to develop an application that uses a .dll with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.