Ask Your Question
0

I am trying to find the keypoints of an image using SURF detector...But the number of key points is always one

asked 2015-03-16 23:34:03 -0500

Gopal gravatar image

updated 2015-03-17 03:11:03 -0500

thdrksdfthmn gravatar image

heres my code (i am using javacv):

import org.bytedeco.javacpp.opencv_core;
import org.bytedeco.javacpp.opencv_features2d;
import org.bytedeco.javacpp.opencv_nonfree;

import static org.bytedeco.javacpp.opencv_highgui.imread;
 opencv_core.Mat images[] = new opencv_core.Mat[2];
        images[0] = new opencv_core.Mat();
        images[1] = new opencv_core.Mat();
        images[0] = imread("/storage/emulated/0/DCIM/Camera/p3.jpg");
        images[1] = imread("/storage/emulated/0/DCIM/Camera/p4.jpg");
        System.out.println("images read");
        opencv_nonfree.SURF surf= new opencv_nonfree.SURF(100);
       opencv_features2d.KeyPoint keyPoints1 = new opencv_features2d.KeyPoint();
        opencv_features2d.KeyPoint keyPoints2 = new opencv_features2d.KeyPoint();
        surf.detect(images[0],  keyPoints1);
        surf.detect(images[1],  keyPoints2);
        System.out.println("Number of SURF points (1): " + keyPoints1.capacity());
        System.out.println("Number of SURF points (2): " + keyPoints2.capacity());
edit retag flag offensive close merge delete

Comments

1

Javacv is not opencv

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-17 03:12:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-15 04:12:32 -0500

Could you tell me how to solve the problem of you later

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2015-03-16 23:34:03 -0500

Seen: 984 times

Last updated: Mar 17 '15