Ask Your Question

dagi's profile - activity

2016-01-26 13:45:32 -0600 received badge  Good Answer (source)
2016-01-26 13:45:26 -0600 received badge  Nice Question (source)
2012-09-16 05:07:22 -0600 received badge  Nice Answer (source)
2012-09-15 14:22:31 -0600 received badge  Teacher (source)
2012-09-14 07:02:42 -0600 received badge  Self-Learner (source)
2012-09-14 07:02:41 -0600 received badge  Student (source)
2012-09-14 03:17:39 -0600 answered a question BRISK Feature Detector detects no keypoints

Okay, I got it myself!

For someone interested, the default values of the parameters for BriskFeatureDetector i.e octaves = 3 and thres = 30 doesn't gave me keypoints at all. But when I change the octaves = 0 as shown in the original author's demo to use AGAST detector of Brisk, it gave me a considerable amount of keypoints.

Thanks and enjoy!

2012-09-13 08:13:42 -0600 asked a question BRISK Feature Detector detects no keypoints

The Brisk detector shown below gives me no keypoints. Can somebody please suggest a problem. I will try to explain what I am doing below with some of the codes.

#include "opencv2/features2d/features2d.hpp"

using namespace cv;    
using namespace std;

Ptr<FeatureDetector> detector;
detector =  FeatureDetector::create("BRISK");

// the filename is given some path

Mat img = imread(filename, 0);
CV_Assert( !img.empty() );

vector<KeyPoint> kp;

detector->detect(img, kp);

So, when I debug this and check the keypoint (kp) it says <0 items>

with similar code other detector like ORB, SIFT or SURF work as intended!

Can somebody please suggest a solution.

I am using opencv 2.4.9 with Qt creator 2.5.2

Thanks