Ask Your Question

Revision history [back]

Java: how to set SURF parameters

Hello,

basically, i have the same problem as described here:

http://answers.opencv.org/question/3167/java-how-to-set-parameters-to-orb-featuredetector/

i also have to write my own yml file, it looks like this:

YAML:1.0 scaleFactor: 1.1 nLevels: 3 firstLevel: 0 edgeThreshold: 1000 patchSize: 31

my code looks like this:

FeatureDetector fd = FeatureDetector.create(FeatureDetector.SURF); fd.read("para.yml"); //contains the above text
MatOfKeyPoint k = new MatOfKeyPoint();
fd.detect(m2, k);//m2 is the image-matrix

I dont notice anny differences when i read the file or not. Also i dont get what the guy (Andriy) did to make it work.

I hope someone of you has an Idea, thanks.

Java: how to set SURF parameters

Hello,

basically, i have the same problem as described here:

http://answers.opencv.org/question/3167/java-how-to-set-parameters-to-orb-featuredetector/

i also have to write my own yml file, it looks like this:

YAML:1.0 scaleFactor: 1.1 nLevels: 3 firstLevel: 0 edgeThreshold: 1000 patchSize: 31

my code looks like this:

FeatureDetector fd = FeatureDetector.create(FeatureDetector.SURF); fd.read("para.yml"); //contains the above text
DescriptorExtractor de=DescriptorExtractor.create(DescriptorExtractor.SURF);
MatOfKeyPoint k = new MatOfKeyPoint();
Mat d=new Mat();

de.read("para.yml");

fd.detect(m2, k);//m2 is the image-matrixk); de.compute(m2, k,d);

I dont notice anny differences when i read the file or not. Also i dont get what the guy (Andriy) did to make it work.

I hope someone of you has an Idea, thanks.