Ask Your Question

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);

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

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);

edit flag offensive delete link more

Question Tools


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

Seen: 723 times

Last updated: May 23 '13