Sunday, September 13, 2009

RAW processing

A "RAW" photo file is one that the camera pretty much has done nothing to, just the "raw" data. In theory, this allows for better processing later in the computer, better than the camera can do. Some compare it to how you develop a negative.
In earlier experiments, I did not find much of an advantage to using RAW files, but mainly the disadvantage that they take up more disk space, and more time to open (and more expertise). So I have rarely used RAW.
But I did a casual experiment today with the Canon 5D2, and I'm beginning to see why I might want to take and keep the RAW files. Now, this was just pretty sloppy processing, and I know very little about it, but see:

A very contrasty scene. A problem for all cameras. The shadow areas are too dark, flat, and noisy.

Detail from the right edge, in the shadows:

The same area, corrected as well as I could with lifting the shadows, dampening noise, and sharpening... from the JPG file the camera made:
And the same area, only this time from the RAW file:
Notice how the colors are better (the JPG had almost killed them), and there is more detail. (You need to click on them for the full-sized samples to really see it.)
The contrast and micro-contrast seems poor perhaps, but remember: 1) this is a section of only the shade, and 2) it could easily be improved, this is just a quick-and-dirty experiment.

15 comments:

Bob R said...

There is a good explanation of digital camera raw at

http://www.adobe.com/digitalimag/pdfs/understanding_digitalrawcapture.pdf

The main factor in trying to bring something up out of the shadows is the fact that jpg only uses 8 bits (256 steps) for tonal information per pixel for the entire photo. If the shadow area is only using 10% of that, then you only have 25 steps to use to try to expand the shadows. However, most raw formats use at least 12 bits (4096 steps) for tonal information per pixel, giving you over 400 steps per pixel in the lower 10% of the shadows. A lot more information for expanding the shadows.

Bob

Tommy said...

Hey EO, don't you mean click for big pic (grin)

Tommy said...

It's interesting, you're right about the color. But, look at the tree trunk (on the bigger image) right behind the metal pole. There seems to be more contrast and shows more detail in the jpg vs. the raw. Like, the roughness of the bark.

Tommy said...

Bob R, could you please post that URL again. I tried copy/paste and that page wasn't found on the Adobe site..

Eolake Stobblehouse said...

Tommy, try here.

The detail contrast of the RAW version is on the low side, but I'm sure it could be a lot better, this was just a quick-and-dirty attempt by a rookie.

Bob R said...

Here's the URL again. Works for me.

http://www.adobe.com/digitalimag/pdfs/understanding_digitalrawcapture.pdf

Bob

Philocalist said...

Hi Bob, just tried your link (both of 'em, actually) and I'm getting the same result as Tommy ... any ideas?

Eolake Stobblehouse said...

It's a link to a PDF file. Maybe a setting in your browser blocks it?

Tommy said...

I tried EO's link and came up with this. Looks like there's stuff after the work understanding

http://www.adobe.com/digitalimag/pdfs
/understanding_digitalrawcapture.pdf

Aniko said...

Concerning the examples: I thought that the difference would be more impressive. Actually the difference is much in the color, that could certainly be improved otherwise.

Where I imagine the great advantage of RAW file (and I have to learn how to make it) on JPEG is when you process a picture, export it, and then have another idea, and open it again, modify it again, and export it again. If it is JPEG, the program will recompress it each time, and that can alter the quality after a few rounds. I imagine that if the format stays RAW, the quality of the image will not be altered, am I right ?

Tommy said...

Aniko said "I imagine that if the format stays RAW, the quality of the image will not be altered, am I right ?"

That's my understanding as well and it's a BIG problem with using jpegs if you want to edit it later.

Aniko said...

Thanks Tommy !

Eolake Stobblehouse said...

It's true.

Also, the leeway with changes is much bigger with RAW.
But If you just use the pics just like they come from the camera, the difference in the formats is negligible.

Bert said...

[...] the JPG had almost killed them [...]

JPEG works on the assumption that the eye is way more sensitive to luminance variations than it is to chroma (color). So the preferred way of achieving a set compression goal is to reduce chroma dynamic range, while attempting to preserve luminance as much as possible...

Sukiho said...

I dont see the problem with jpgs getting recompressed, because you can save and work from the original, altho I prefer raw myself