Ask Your Question
0

error using StarFeatureDetector + GridAdaptedFeatureDetector

asked 2013-05-08 01:00:13 -0600

RaulPL gravatar image

updated 2013-05-08 12:53:30 -0600

Hi, I'm trying to use the Star detector with GridAdaptedFeatureDetector but it doesn't work, the detector returns zero points. My code is the following:

vector<KeyPoint> kp0;
Mat framek0=imread("/home/raul/workspace/im15.png",0);
Ptr<FeatureDetector> star = new StarFeatureDetector(16,5,10,8,5);
Ptr<FeatureDetector> detector = new GridAdaptedFeatureDetector(star,1024,16,16);
detector->detect(framek0,kp0);
cout<<kp0.size()<<endl;

The output is a: 0.

There are no problems using only the StarFeatureDetector, it gets about 400 points in the same image.

I also tried with Ptr<featuredetector> detector = FeatureDetector::create("GridSTAR") but it does the same. GridAdaptedFeatureDetector works well when I use FAST, can someone explain me what am I doing wrong?

Thanks, Raúl

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-05-23 05:55:45 -0600

aliciadominica gravatar image

Maybe this could work? This is what I am using:

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

cv::GridAdaptedFeatureDetector det(detector,5000);

det.detect......
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-08 01:00:13 -0600

Seen: 750 times

Last updated: May 23 '13