CCM stands for the color correction matrix, which is used in srgbfunction in finishing. CCM depends on the sensor model and shouldn't be hardcoded. Wrong CCM results in incorrect output color. Now color should be Okay on most of input RAWs.
CFA stands for Color Filter Array or Bayer Filter. Most of the sensors use the RGGB pattern, but it may be shifted by one pixel in horizontal and/or vertical direction. I added shift_bayer_to_rggbfunction on the start of finish, which shifts input raw image depending on the RAW CFA pattern.
It also fixes black level for DNGs input from the hdrplus dataset - I reused black level calculation function from LibRaw2DngConverter.
Solves #39 and maybe #48.
CCM stands for the color correction matrix, which is used in
srgb
function in finishing. CCM depends on the sensor model and shouldn't be hardcoded. Wrong CCM results in incorrect output color. Now color should be Okay on most of input RAWs.CFA stands for Color Filter Array or Bayer Filter. Most of the sensors use the RGGB pattern, but it may be shifted by one pixel in horizontal and/or vertical direction. I added
shift_bayer_to_rggb
function on the start offinish
, which shifts input raw image depending on the RAW CFA pattern.It also fixes black level for DNGs input from the hdrplus dataset - I reused black level calculation function from
LibRaw2DngConverter
.Tested on hdrplus data and Timothy's RAWs.