Quantcast
Channel: Adobe Community : Popular Discussions - DNG SDK
Viewing all articles
Browse latest Browse all 4036

From Stage3Image() to sRGB color space

$
0
0

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


Viewing all articles
Browse latest Browse all 4036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>