Hi all,<br><br>There are several entries in bugzilla about to be able to load RAW image in 16 bits color depth without to use Color Management with a valid ICC color profile for your camera.<br><br><a href="http://bugs.kde.org/show_bug.cgi?id=146393" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bugs.kde.org/show_bug.cgi?id=146393</a><br>

<a href="http://bugs.kde.org/show_bug.cgi?id=124814" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bugs.kde.org/show_bug.cgi?id=124814</a><br><a href="http://bugs.kde.org/show_bug.cgi?id=150457" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bugs.kde.org/show_bug.cgi?id=150457</a><br>
<a href="http://bugs.kde.org/show_bug.cgi?id=155074" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bugs.kde.org/show_bug.cgi?id=155074</a><br>

<br>Like you now, dcraw provide a linear histogram image, and result image is generally a black hole... More details can be seen at this url : <br><br><a href="http://www.guillermoluijk.com/tutorial/dcraw/index_en.htm" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.guillermoluijk.com/tutorial/dcraw/index_en.htm</a><br>

<br>There is a patch here against RAW image loader from digiKam core for KDE3 to fix this problem :<br><br><a href="http://digikam3rdparty.free.fr/misc.tarballs/raw16bitsautogamma.patch" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://digikam3rdparty.free.fr/misc.tarballs/raw16bitsautogamma.patch</a><br>

<br>In this patch, the following operations are processed :<br><br>- An auto-exposure correction using white-balance algorithm from digiKam core.<br>- A gamma correction to 2.0 (BT.709 adjustment) using gamma algorithm from digiKam core.<br>

- sRGB ICC color-space profile assignment.<br><br>In theory, the Gamma value for BT.709 adjustment must by 2.2222, but after severals tests, 2.0 sound like the most adapted...<br><br>I have compared digiKam with this patch against :<br>

<br>- 8 bits raw decoding from DCRAW. This one adjust automatically white-balance/gamma<br>- Last LightZone version for Linux (witch use dcraw internally) and do not use Color Management in Raw workflow.<br><br>... the results are similar. It's not perfect, but suitable as well. Look screenshots available here :<br>
<br><a href="http://digikam3rdparty.free.fr/Screenshots/RAW16bitsAutogamma/">http://digikam3rdparty.free.fr/Screenshots/RAW16bitsAutogamma/</a><br><br>You can see:<br><br>- On the Left, a PNG file generated from a RAW image using dcraw with 8 bits color depth and auto-gamma<br>

- On the middle, the RAW image decoded in digiKam in 16 bits color depth with this patch<br>- On the right, the RAW image open in LightZone image editor.<br><br>Feedback are welcome. Thanks in advance<br><br>Gilles Caulier<br>
<br>