cedricb
Where did you find these values? from the camera or from another source?
Using manual selection 😀. Criterion was coincidence of "Temperature" and "Tint" adjustments in Adobe Camera Raw when WB was switched from "as shot" to corresponding preset (daylight etc...)
Did you test it with dcraw?
Wow! I got unexpected result:
- set custom WB on color target and shoot DNG
- read WB in camera settings from properycase #100 (first 4 values) for example: 647 1561 2268 647 (and write it to paper 😉)
- use this values in dcraw: dcraw -v -W -o 0 -q 3 -4 -T -r 1561 647 2268 647 DNG_9012.DNG
... and colors in resulting tiff image are very similar to jpeg.
Tested at 3 images with different manual WB (on red, green, blue targets).
My question to gurus in color management: how to store these values in DNG (it is possible it to convert to AsShotNeutral values)?
edit : Maybe I did it: now colors in dcraw (but not in ACR!) are very similar to jpeg for any custom WB
in dng_hdr.c :
int cam_AsShotNeutral[]={1000,1000,1000,1000,1000,1000};
in IFD0 structure:
{0xC628, T_RATIONAL, 3, (int)cam_AsShotNeutral},
and in capture_data_for_exif():
{
int arr[3];
get_property_case(100, &arr, sizeof(arr)); // only for digic 2
cam_AsShotNeutral[1]=arr[1];
cam_AsShotNeutral[3]=arr[0];
cam_AsShotNeutral[5]=arr[2];
}