- Messages
- 1,129
- Name
- Adam Bonn
- Edit My Images
- No
Hi everyone,
I was hoping to get some advice..
The Premise
I'd like to create forwarding matrices for use with the 'embedded' profiles that are included with cameras that natively shoot DNGs.
My Problem
I've read (and re-re-re-re-read!!) the adobe DNG spec document and I just can't get my head round what I need to do...
I think I'm ok with the maths....
I'm lead to believe that the Forward Matrices (hereon in 'FM' for brevity) can be calculated using the data found in the Colour Matrices (CMs)
The maths for this seems fairly simple....
From Adobe:
First, invert the XYZtoCamera matrix.
CameraToXYZ = Inverse (XYZtoCamera)
Second, the white balanced transform is computed
CameraToXYZ_D50 = CA * CameraToXYZ
(CA is an equation found on Bruce Lindbloom's site)
I'm using excel to perform the maths...
(MINVERSE to inverse matrices and MMULT to multiple them)
I'm not managing to get values that work (hell I'm not even managing to get values that look right!!)
Originally I thought that this was simply the CMs inversed, but I guess not....
I was hoping that someone here could help walk me through it....
There are a few blogs etc that detail this process, however they start from a base colour target and build a profile from scratch...typically using one CM and one FM. what I want to do is piggyback from the incumbent DNG existing CMs
Thanks in advance for any help
Oh and... I've asked this in a couple of other places and generally folks ask why.
Well IMHO the native colours of DNG are nicer than the sanitised look of a modern LR/ACR dcp file, but the bare bones embedded profiles struggle at sub-D50 illuminate levels. Also going forward I wish to colour calibrate my cameras, and I'd like to produce profiles that follow the DNG spec as closely as possible.
I was hoping to get some advice..
The Premise
I'd like to create forwarding matrices for use with the 'embedded' profiles that are included with cameras that natively shoot DNGs.
My Problem
I've read (and re-re-re-re-read!!) the adobe DNG spec document and I just can't get my head round what I need to do...
I think I'm ok with the maths....
I'm lead to believe that the Forward Matrices (hereon in 'FM' for brevity) can be calculated using the data found in the Colour Matrices (CMs)
The maths for this seems fairly simple....
From Adobe:
First, invert the XYZtoCamera matrix.
CameraToXYZ = Inverse (XYZtoCamera)
Second, the white balanced transform is computed
CameraToXYZ_D50 = CA * CameraToXYZ
(CA is an equation found on Bruce Lindbloom's site)
I'm using excel to perform the maths...
(MINVERSE to inverse matrices and MMULT to multiple them)
I'm not managing to get values that work (hell I'm not even managing to get values that look right!!)
- I'm fairly sure that my first problem is the data I'm using to base the XYZtoCamera inversion on (but don't take my word for it !!)
- My second problem is that I'm unsure if the DNG tag 'AsShotNeutral' is an XYZ value, or a RAW RGB one (I can calculate a known XYZ value first into XY, then CCT)
- Thirdly! It seems that I have to create a single CM, via interpolating CM1 and CM2 using a combination of the CCTs of CM 1 & 2 (A and D65) combined with the CCT of the scene as shot
Originally I thought that this was simply the CMs inversed, but I guess not....
I was hoping that someone here could help walk me through it....
There are a few blogs etc that detail this process, however they start from a base colour target and build a profile from scratch...typically using one CM and one FM. what I want to do is piggyback from the incumbent DNG existing CMs
Thanks in advance for any help
Oh and... I've asked this in a couple of other places and generally folks ask why.
Well IMHO the native colours of DNG are nicer than the sanitised look of a modern LR/ACR dcp file, but the bare bones embedded profiles struggle at sub-D50 illuminate levels. Also going forward I wish to colour calibrate my cameras, and I'd like to produce profiles that follow the DNG spec as closely as possible.