Ask Your Question

Gopal's profile - activity

2015-03-16 23:34:03 -0500 asked a question I am trying to find the keypoints of an image using SURF detector...But the number of key points is always one

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());
2015-02-24 23:54:34 -0500 asked a question Is stitcher class available in opencv-android

I need the package that has to be imported to use stitcher in opencv-android

2015-02-23 03:00:57 -0500 answered a question What are the reasons for failure of Stitcher.Stitch

I have an image of 1280x720 size that i have divided into two parts with a 10% overlap. But stitcher gives a status of 1. But it works well with images of size 5248x2952, 3264x1836. I tried by reducing the size from 1280x720 to 417x390, it worked for it

2015-02-19 01:03:55 -0500 asked a question What are the reasons for failure of Stitcher.Stitch

For some images, it gives the status code ERR_NEED_MORE_IMGS for some images. The images are of size 320*240. It fails for images of higher resolution

EDIT:

I have an image of 1280x720 size that i have divided into two parts with a 10% overlap. But stitcher gives a status of 1. But it works well with images of size 5248x2952, 3264x1836. I tried by reducing the size from 1280x720 to 417x390, it worked for it