DNG and cam_xyz


When processing DNG files, will "libraw" calculate a weighted matrix based on two color matrices, camera calibration matrices, etc.?

When I tried to print out "cam_xyz", the fields are all zeroes. Is there an "end" matrix that reflects the weighted matrix.

Also, when can "float cmatrix[3][4]" be used? what kind of conversion does it apply to?

Thanks a lot!



"libraw" does not average

"libraw" does not average/weight DNG color data

cmatrix is camera color data, it used according to use_camera_matrix value.

-- Alex Tutubalin

Hi Alex,

Hi Alex,

Thanks for the quick reply!

Can you point me to a matrix that "libraw" will use to convert DNG file? (to XYZ) The "cam_xyz" contain all zeros, there should be some matrix being used.



Camera color matrix is parsed

Camera color matrix is parsed into imgdata.color.cmatrix

Sorry, wrong. If use_camera_matrix is set, so camera matrix should be used, camera color matrix is copied to rgb_cam

-- Alex Tutubalin