MergeDebevec produces strange color effect

asked 2016-09-04 00:48:10 -0600

mikebrainalgo gravatar image

updated 2016-09-04 21:03:26 -0600


In attachment, an archive with 3 bracketed photos and LDR result after MergeDebevec and tonemapping, as you can see, a dark area appears on the left above the beach. I'm using opencv 3.1 but the result is the same with older versions. This strange behavior occurs only on bright area of the bracketed photos.

Here is the code snippet :

try {
    Ptr<MergeDebevec> merge_debevec = createMergeDebevec();
    std::vector<float> times;

    times.push_back(1.0f /80);
    times.push_back(1.0f / 30);

    merge_debevec->process(inputArr, output,times,response);
    Ptr<TonemapDurand> tonemap_Durand = createTonemapDurand();
    Mat ldr;
    tonemap_Durand->process(output, ldr);
            imwrite("c:\\ldr.jpg", ldr *255);

catch (Exception ex) {


edit retag flag offensive close merge delete