Hi,
I'm trying to save camera raws(16 Bit Bayer pattern) I grab directly from an industrial camera in the DNG format.
By looking at http://fossies.org/dox/digikam-2.5.0/dngwriter_8cpp_source.html#l00188 - the only example I could find online - I have been able to create a file which Photoshop & co are able to read. However I had to do some guesswork. Specifically I had to specify a profile with the following lines:
prof->SetColorMatrix1((dng_matrix) matrix);
prof->SetCalibrationIlluminant1(lsD65);
negative->AddProfile(prof);
dng_vector camNeutral(identify.rawColors);
for (int i = 0; i < identify.rawColors; ++i)
{
camNeutral[i] = 1.0/identify.cameraMult[i];
}
negative->SetCameraNeutral(camNeutral);
I don't have this information. Just adding the identity matrix produces a strange tint.
What is the simplest way of saying "the camera sensor is linear" and "I know nothing about the color temperature"?
I'm thankful for any help!