Ask Your Question
0

OrbFeatureDetector issue

asked 2012-11-10 07:41:56 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hello

I am having trouble with detecting KeyPoint s with the OrbFeatureDetector, this is my code, it is taken from the Surf example, but as I understand it has the same functionality.

vector<KeyPoint> keypoints_1, keypoints_2;
int minHessian = 15;

OrbFeatureDetector detector(minHessian);

detector.detect( img_1, keypoints_1 );
detector.detect( img_2, keypoints_2 );

the keypoints vector gets filled with -1274509 the max value it can support I'm thinking. And at the compute part it crashes. What am I doing wrong? Pls help.

Peter

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-11-12 10:23:43 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

The first parameter of ORBFeatureDetector constructor parameter is maximum number of features to retain. I think that is your mistake. Try to increase the value to 200-400.

edit flag offensive delete link more

Comments

If i increase it to 300 then it will crash at detect command, if i set it to 15 it will go tru to compare line

Szippy gravatar imageSzippy ( 2012-11-13 09:17:27 -0600 )edit

Question Tools

Stats

Asked: 2012-11-10 07:41:56 -0600

Seen: 1,296 times

Last updated: Nov 12 '12