soantrinh / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Problems use Stitcher #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I have problems running Stitcher on Android.
This is my code:
    private void pano() {
        //Loader.load(opencv_nonfree.class);
        Stitcher stitcher = Stitcher.createDefault(false); 
        MatVector images = new MatVector(2);
        for (int i = 0; i < 1; i++) {
            images.put(0, cvLoadImage(Environment.getExternalStorageDirectory()
                    + "/P/picture1.jpg"));
            images.put(1, cvLoadImage(Environment.getExternalStorageDirectory()
                    + "/P/picture2.jpg"));
        }
        IplImage result = new IplImage(null);
        int status = stitcher.stitch(images, result);
        if (status == Stitcher.OK) {
            cvSaveImage(Environment.getExternalStorageDirectory()
                    + "/P/result.jpg", result);

        }

    }

Error:
10-12 13:01:32.753: E/AndroidRuntime(17087): Caused by: 
java.lang.RuntimeException: 
/home/saudet/android/OpenCV-2.4.2/modules/stitching/src/matchers.cpp:326: 
error: (-213) OpenCV was built without SURF support in function 
cv::detail::SurfFeaturesFinder::SurfFeaturesFinder(double, int, int, int, int)

Attached full logs.

What version of the product are you using? On what operating system?
Eclipse (Android OS 4.0 )

Original issue reported on code.google.com by andrey.n...@gmail.com on 12 Oct 2012 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by samuel.a...@gmail.com on 12 Oct 2012 at 9:17