Exposure Fusion createMergeMertens not working in 3.1.0

asked 2016-02-22 11:43:38 -0600

tarzan gravatar image

I have a simple Android application, running proper with OpenCV 3.0.0, but crashing in 3.1.0 with error FATAL signal 11. Is there something wrong in 3.1.0 library ?

    List<Mat> images = new ArrayList<Mat>();
    String path = Environment.getExternalStorageDirectory().toString() + "/Download"  + "/";
    Mat hdrImage = new Mat();
    Mat ldrImage = new Mat();

    for(int i = 0; i < InFiles.length; i++) {
        Mat m = Imgcodecs.imread(path + InFiles[i]);
        Log.d("TAG", "xprocess "+path+InFiles[i]);
        images.add(m);
    }

    Photo.createMergeMertens().process(images,  hdrImage);
    Core.multiply(hdrImage, new Scalar(255.0, 255.0, 255.0), ldrImage);
    Imgcodecs.imwrite(path + OutImage, ldrImage);
edit retag flag offensive close merge delete