First time here? Check out the FAQ!

Ask Your Question
0

error using StarFeatureDetector + GridAdaptedFeatureDetector

asked May 8 '13

RaulPL gravatar image

updated May 8 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered May 23 '13

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......
Preview: (hide)

Question Tools

Stats

Asked: May 8 '13

Seen: 765 times

Last updated: May 23 '13