# error using BRISK + GridAdaptedFeatureDetector

Hi, I'm trying to find keypoints using BRISK, I want the points to be well distributed across the image so I use the brisk detector + GridAdaptedFeatureDetector. The code is the following:

vector<KeyPoint> kp0,kp1;
Ptr<FeatureDetector> brisk = FeatureDetector::create("BRISK");
detector->detect(framek,kp0,Mat());
detector->detect(framek2,kp1,Mat());


The problem is that I'm getting this error:

OpenCV Error: Bad argument (No parameter 'threshold' is found) in set, file /home/raul/OpenCV/OpenCV-2.4.9/modules/core/src/algorithm.cpp, line 619
OpenCV Error: Bad argument (No parameter 'threshold' is found) in set, file /home/raul/OpenCV/OpenCV-2.4.9/modules/core/src/algorithm.cpp, line 619
OpenCV Error: Bad argument (No parameter 'threshold' is found) in set, file /home/raul/OpenCV/OpenCV-2.4.9/modules/core/src/algorithm.cpp, line 619
terminate called after throwing an instance of 'tbb::captured_exception'
what():  /home/raul/OpenCV/OpenCV-2.4.9/modules/core/src/algorithm.cpp:619: error: (-5) No parameter 'threshold' is found in function set


If I only use brisk without the GridAdaptedFeatureDetector it works fine.

Am I doing something wrong? or is a bug? I don't know...

Thanks, Raúl

edit retag close merge delete

Can't you use FeatureDetector::create("GridBRISK"); instead, as described here?