I try in Python the example of the "memorial". There are two possibilities to call the merge:
1. Calibrate the response on images and times and use to use it for the merge
2. Do the merge directly on images and times
I do not get the same result. The image created by 2 is correct and the image created by 2 bad
Do I make some mistake ?
Regards
calibrate = cv.createCalibrateDebevec()
response = calibrate.process(images, times)
merge_debevec = cv.createMergeDebevec()
#hdr = merge_debevec.process(images, times, response) #Bad
hdr = merge_debevec.process(images, times) #Good
tonemap = cv.createTonemapReinhard()
ldr = tonemap.process(hdr)
cv.imwrite('ldr.png', ldr * 255)
cv.imwrite('hdr.hdr', hdr)
↧