First time here? Check out the FAQ!

Ask Your Question
1

Reduce maximal Features on Android.

asked Jun 26 '13

stetro gravatar image

Hi there, is it possible to reduce the feature count of FAST, ORB, STAR or BRISK with the OpenCV4Android Library?

The usual Feature detection looks like this:

private static MatOfKeyPoint detectFeatures(Mat inputPicture) {
    FeatureDetector featureDetector = FeatureDetector.create(FEATURE_DETECTOR_METHOD);
    MatOfKeyPoint matOfKeyPoint = new MatOfKeyPoint();
    featureDetector.detect(inputPicture, matOfKeyPoint);
    return matOfKeyPoint;
}

But is it possible to setup any Settings?

Thanks

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jun 27 '13

Guanta gravatar image

Yes it is possible, however a little bit awkward: you have to create a parameter.xml (or .yml) file and load it, see e.g. http://answers.opencv.org/question/11478/grid_orb-detector-on-android/ or http://answers.opencv.org/question/12429/matching-orb-descriptors-with-flann-lsh-on-android/, where it is done similarly.

To further reduce your features, you can look at the keypoints-response values and select only e.g. the 500 top ones.

Preview: (hide)

Question Tools

Stats

Asked: Jun 26 '13

Seen: 239 times

Last updated: Jun 27 '13