DCP profiles and color temperature computation

Dear experts,

I have a very technical question concerning RT’s DCP profiles handling code, which I am trying to port to PhotoFlow.

in DCPProfile::makeXyzCam() , the color temperature is computed from the WB multipliers in CameraRGB space, using the neutralToXy() function followed by xyCoordToTemperature().

On the other hand, in DCPProfile::makeHueSatMap() the code directly uses the temperature returned by white_balance.getTemp(), without going through the chain of WB multipliers -> xy coordinates -> color temperature.

Is there a specific reason for doing this?

I’m asking because in PhF I only store the CameraRGB WB multipliers, and therefore the code of DCPProfile::makeXyzCam() seems to be more convenient for deriving the color temperature, which I do not have pre-stored. Can this way of computing the color temperature be used in DCPProfile::makeHueSatMap() as well, or is there a problem with that?

Thanks a lot!

Tag @heckflosse @jdc and Anders Torger at http://www.ludd.ltu.se/~torger/dcamprof.html

1 Like