Ask Your Question

Revision history [back]

BlendDebevec produces strange color effect

Hello,

In attachment, an archive with 3 bracketed photos and HDR result, 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. Thie strange behavio occurs only on bright area of the bracketted 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);
    times.push_back(1.0f/8);



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


}
catch (Exception ex) {

}

BlendDebevec produces strange color effect

C:\fakepath\HDR.jpg(/upfiles/14729687902593475.jpg)(/upfiles/14729687666354187.jpg)(/upfiles/14729687415027098.jpg)

Hello,

In attachment, an archive with 3 bracketed photos and HDR result, 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. Thie strange behavio occurs only on bright area of the bracketted 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);
    times.push_back(1.0f/8);



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


}
catch (Exception ex) {

}

BlendDebevec produces strange color effect

C:\fakepath\IMG_20160511_180815_1.jpg

C:\fakepath\IMG_20160511_180816_2.jpg

C:\fakepath\IMG_20160511_180817_3.jpg

C:\fakepath\HDR.jpg(/upfiles/14729687902593475.jpg)(/upfiles/14729687666354187.jpg)(/upfiles/14729687415027098.jpg)

Hello,

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

Here is the code snippet :: times values are taken from exif. I have tried with different values but the issue remains.

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

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



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


}
catch (Exception ex) {

}
click to hide/show revision 4
No.4 Revision

updated 2016-09-04 01:05:40 -0600

berak gravatar image

BlendDebevec produces strange color effect

C:\fakepath\IMG_20160511_180815_1.jpg

C:\fakepath\IMG_20160511_180816_2.jpg

C:\fakepath\IMG_20160511_180817_3.jpg

C:\fakepath\HDR.jpg

Hello,

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

Here is the code snippet : times values are taken from exif. I have tried with different values but the issue remains.:

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

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



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


}
catch (Exception ex) {

}

BlendDebevec MergeDebevec produces strange color effect

Hello,

In attachment, an archive with 3 bracketed photos and HDR result, LDR result after MergeDebevec and tonemapping, as you can see, a dark area appears on the left above the beach.I'm beach. I'm using opencv 3.1 but the result is the same with older versions. Thie This strange behavio behavior occurs only on bright area of the bracketted 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);
    times.push_back(1.0f/8);



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


}
catch (Exception ex) {

}