Java: how to set SURF parameters

asked 2013-06-09 09:16:10 -0500

Albert123 gravatar image

updated 2013-06-09 10:42:08 -0500


basically, i have the same problem as described here:

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);
DescriptorExtractor de=DescriptorExtractor.create(DescriptorExtractor.SURF);
MatOfKeyPoint k = new MatOfKeyPoint();
Mat d=new Mat();"para.yml");

fd.detect(m2, k); 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.

edit retag flag offensive close merge delete