Ask Your Question
0

Problem on initialize FeatureDetector or DescriptorExtractor on OpenCV 3.0

asked 2015-01-16 09:41:45 -0600

rafafirenze gravatar image

Hello mates.

I'm trying to change my old OrbFeatureDetector for a Ptr<FeatureDetector> and giving the parameter ORB, but when I try to detect something as:

Ptr<FeatureDetector> detector = FeatureDetector::create<FeatureDetector>("ORB");
detector->detect(img_object, keypoints_object);
  1. My detector is null
  2. I get an EXC_BAD_ACCESS with address=0x0

Do you have any idea why it could happen?

Thank you in advance.

edit retag flag offensive close merge delete

Comments

1

This is similar to this question. BTW, I sympathize ;) http://answers.opencv.org/question/45...

Doombot gravatar imageDoombot ( 2015-01-16 09:58:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
5

answered 2015-01-16 09:55:29 -0600

berak gravatar image

no, it does not work like that anymore in 3.0. you will have to use:

Ptr<FeatureDetector> detector = ORB::create();

or maybe:

Ptr<Feature2D> f2d= ORB::create(); 
f2d->detect(...);
f2d->compute(...);
edit flag offensive delete link more

Comments

You are the best! thank you !

rafafirenze gravatar imagerafafirenze ( 2015-01-16 10:02:58 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-16 09:41:45 -0600

Seen: 2,255 times

Last updated: Jan 16 '15