loosing colors while writing image in DPX format
Posted: 2009-06-09T21:44:55-07:00
Hi All...
I'm implementing vc++6.0 application using ImageMagick-6.3.4.
I'm loading DPX image (i.e Gray Scale image) by converting it into RGB and applying colors to the pixels of the image.
Finally saving the image with following settings.
m_Image.defineValue("dpx","television.gamma","1.9");
m_Image.defineValue("dpx","television.white_level","95.0");
m_Image.defineValue("dpx","television.black_level","685.0");
m_Image.colorSpace(LogColorspace);
m_Image.write("C:\\test.dpx");
If image write in dpx format,the output image contains wrong colors like Red to Blue, Blue to Red and Goldcolor to Some other color etc.If saving the same Gray scale image do not apply any changes it gives correct output image.while taking DPX image as input.
If image write in JPG or TIF format,the output image display some pixels too bright,but it gives correct color information.It gives same brightness for Gray sacle image also.while taking DPX image as input.
Can you please help me what to do to get correct colors on the output image.
Thanks in advance.....
I'm implementing vc++6.0 application using ImageMagick-6.3.4.
I'm loading DPX image (i.e Gray Scale image) by converting it into RGB and applying colors to the pixels of the image.
Finally saving the image with following settings.
m_Image.defineValue("dpx","television.gamma","1.9");
m_Image.defineValue("dpx","television.white_level","95.0");
m_Image.defineValue("dpx","television.black_level","685.0");
m_Image.colorSpace(LogColorspace);
m_Image.write("C:\\test.dpx");
If image write in dpx format,the output image contains wrong colors like Red to Blue, Blue to Red and Goldcolor to Some other color etc.If saving the same Gray scale image do not apply any changes it gives correct output image.while taking DPX image as input.
If image write in JPG or TIF format,the output image display some pixels too bright,but it gives correct color information.It gives same brightness for Gray sacle image also.while taking DPX image as input.
Can you please help me what to do to get correct colors on the output image.
Thanks in advance.....