Ask Your Question
0

OrbFeatureDetector was not declared in this scope

asked 2016-11-07 20:41:46 -0500

lowkin gravatar image

I have an Nvidia Jetson TK1 and I am following the tutorials and I am building both OpenCV files on my computer and the TK1.

I have run into a problem on my ubuntu computer that the line

cv::OrbFeatureDetector detect; // says it is not in scope.

The code runs fine on my jetson TK1 but I cannot figure out where to find the orbfeaturedetect class.

has it been removed from opencv ?

only header included is #include <opencv2 opencv.hpp="">

edit retag flag offensive close merge delete

Comments

opencv version ?

berak gravatar imageberak ( 2016-11-08 01:01:01 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-09 02:58:54 -0500

berak gravatar image

assuming, you're using opencv3, - there have been some changes in the features2d api.

instead of:

cv::OrbFeatureDetector detect;

you'll have to use:

Ptr<ORB> detect = ORB::create();
detect->doSomething();

please also see tutorials

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-11-07 20:41:46 -0500

Seen: 512 times

Last updated: Nov 09 '16