loosing colors while writing image in DPX format

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
asha09

loosing colors while writing image in DPX format

Post by asha09 »

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.....
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: loosing colors while writing image in DPX format

Post by magick »

You will get some color difference when transforming from RGB to the Log colorspace. Post a URL to your image so we can download it and reproduce the problem. We'll then post back with what we found.
Post Reply