I get my image this way dng_image* image = (negative->Stage3Image()); I have to manimulate with it and then I want to covtert it to sRGB color space. I tryed to do gamma 2.2 and white balance with white point from camera, but colors are still different.
I think that I should use this matrix camera2RGB for conversion but I don't know how.
dng_camera_profile* profile = negative->CameraProfileToEmbed();
dng_color_spec spec(*negative,profile);
const dng_matrix camera2RGB = dng_space_sRGB::Get ().MatrixFromPCS () * spec.CameraToPCS ();
profile->HasColorMatrix1(); returns true
profile->HasColorMatrix2(); returns true
negative->HasCameraNeutral(); returns true
Sorry for my language skill
Thank you
Petr Kocich