RAW processing

All about RAW processing

How to covert raw RGB to sRGB

I read a raw file and got its Bayer values. If I unpack the RGB values into 3 channels (with half image size) and display it, the result looks very green. I know there is some matrix could be used to convert the raw RGB to sRGB. Can anyone tell me which matrix I should use? I find a RGB2XYZ matrix but not sure how to use it. I do not need any post-processing, and just need the color to be correct.

Thanks in advance!

Best.
Chen

Forums: 

Question about "use_camera_matrix"

Hi Alex,

I have a question about "use_camera_matrix". Specifically,

1. During what stage will the camera matrix will be used?
2. If the color matrix is unavailable? what matrix will be used to go from "RAW" to "Camera_RGB"?

If I want to use the "adobe_coeff", should I set it as "3"; if I do not want to use any matrix, what "key" and "value" should be used?

Thanks,

Mio

Forums: 

camera parameters adjustment consistent over different images

I need some guidance on how to get LibRaw to perform the exact same RAW process over multiple different shots.
For example, I don't want automatic white balance based on each image, because that will create different math calculation based on different images intensities.

I am looking to get the same data processing that will use the best bit depth information and range on the output.

Forums: 

the pipeline of raw decoding

I have difficulty in clarifying how the pipeline of decoding a raw file goes. First, DNs of a raw file are scaled. I suppose that scaling consists of 5 elements: 1) linearization of curved values as far as an irreversible raw file is concerned, 2)setting of black level, 3) setting of white level, 4) subtraction of black level values from each pixel, and 5) mapping modified values to a logical range of 0-1. The logicalized values are mapped by way of matrix into a working color space before a final output space. My question is linked to dcraw's command -W -D.

Forums: 

Missing a bit ?

So this software guy gave me software that uses libraw to convert my Canon CR2 files into 16-bit Tiffs. The problem is that the resulting Tiff is half as bright, and when I compare the values between the two files in Canon's digital photo 'professional' software, I can see that the Tiff file shows values for red green and blue which are half-or-less than the values shown in the CR2 file. It's as if the most significant bit somehow got stripped off. Anyone seen this???

Forums: 

dcraw_emu output to specific position

Hello,

I compiled the latest LibRaw and tested the dcraw_emu tool in the bin/ directory. I do not understand how to output the ppm file to a specific directory. Currently it writes the result into the same path of the original file, which is something I would like to avoid.

In dcraw it's possible to use -c and then run:

    dcraw -c -w -6 /path/to/file.cr2 > /another/path/file.ppm

Forums: 

Pages

Subscribe to RSS - RAW processing