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) {
}