This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Description
I'm writing my own RAW development procedure, and I encountered a potential problem with the sRGB conversion matrix as reported by rawkit. Specifically, the array returned by raw.data.contents.color.rgb_cam is:
[[ 1.82691061 -0.65497452 -0.17193617]
[ 0. -0.00683982 1.33216381]
[-0.32532394 0. 0.06269717]
[-0.40055895 1.33786178 0. ]]
And it should be (as correctly reported by a different ctypes-based libraw wrapper).
[[ 1.8269106 -0.6549745 -0.17193617 0. ]
[-0.00683982 1.3321638 -0.32532394 0. ]
[ 0.06269717 -0.40055895 1.3378618 0. ]]
It would appear that the array dimensions are swapped somewhere.