martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
198 stars 9 forks source link

Higher Bit-Depth Output? #19

Closed Alex-Vasile closed 11 months ago

Alex-Vasile commented 1 year ago

Currently, the application, as far as I can tell, out puts images using the same bit depth as the input images. It would be worth investigating to see if raw processing software will correctly read the output information if the bit depth is increased. E.g. input is only 8/10 bit but we output to 14/16 bit.

17 needs to apply a tone-map to the image before outputting to DNG in part because of this fact (I'm sure it would still benefit the output quality even on higher bit-depth).

chris-rank commented 1 year ago

This would be interesting to investigate. It would require several changes in the DNG meta information, e.g. the white level has to be adjusted. However, there might exist an option in the DNG framework to store the values with a higher bit depth. Still the "manipulated" DNGs have to be accepted by your RAW converter of choice, which may have sensor-specific profiles and it is unclear to me if full compatibility can be ensured.