Jump to content

Help with Creating DNG Spec Forwarding Matrix


Recommended Posts

Advertisement (gone after registration)

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 Leica include with their cameras.

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 the my problem is the data I'm using to base the XYZtoCamera inversion on (but don't take my work for it !!)

Originally I thought that this was simply the CMs inversed, but I guess not....

think I have to apply a matrix calculation to the CMs in order to obtain the correct values to invert

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... what I want to do is piggyback from Leica's existing CMs

Thanks in advance for any help

 

 

Link to post
Share on other sites

Perhaps I need to phrase my question differently 

using nothing more than the two CMs and the ‘as shot neutral’ tag value that Leica embed into the dng 

how do i created a single matrix using mired interpolation?

I would like to do this in excel. I don’t have matlab.

Anyone?

Link to post
Share on other sites

42 minutes ago, jaapv said:

I see. Would it not be far simpler to create colour profiles in your raw converter?

Yes (and I've done this in the past)

But I want to learn how to do the thing that a member did to some degree of fanfare.

See here

 

Seems like we were both convinced!

  • Like 2
Link to post
Share on other sites

Prevent a yellowish cast under LED light?
Set the camera colour balance by a greyscale reading off a white piece of paper in the relevant light. Then warm up the image to taste using the yellow-blue slider in the colour balance dialog.
Otherwise, in Photoshop, change the contrast curve of the *B channel in LAB..

Link to post
Share on other sites

4 hours ago, jaapv said:

Prevent a yellowish cast under LED light?
Set the camera colour balance by a greyscale reading off a white piece of paper in the relevant light. Then warm up the image to taste using the yellow-blue slider in the colour balance dialog.
Otherwise, in Photoshop, change the contrast curve of the *B channel in LAB..

No not that

Calculate the correction forwarding matrices from the embedded colour matrices using chromatic adaptation

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...