
Originally Posted by
480sparky
I've been trying to understand raw camera files a bit more, and I think I've got my head wrapped around it. But I want to make sure I have it straight.
So if any of my lines of thinking are wrong, please let me know:
1. Each camera sensor pixel is colorblind, so either a red, blue or green filter is placed over it (typically a Bayer array, but other methods are used). This causes the pixel to only record one color of the spectrum. The pixel only records the luminosity of that color, not the color itself, so yes pixels only record grayscales.
2. When the shutter opens, light strikes the pixels, and each pixel records it's red, green or blue value based on how many photons strike it during the exposure. Yes.
3. A given pixel can record 4,096 shades of it's pre-assigned color, assuming a 12-bit depth. No. The pixels are analog and are not limited to 4096 values.
4. The pixel will create an electrical charge, increasing it as more photons strike the pixel. Essentially. Pixels can become saturated, at which point they cannot record any more photons that may stike them.
5. When the shutter closes, the camera's processor queries each pixel for it's value, which can range from 0 to 4,096 based on how many photons struck the pixel. No. The voltage each pixel developed has to first be amplified, then the amplified signal is run through an analog-to-digital converter. The output of the AD converter determines the bit-depth. !2-bit output is 4096 gradations of grayscale and 14-bit is 16.384 gradations of grayscale.
6. If the camera is capable of recording raw, and that is the option chosen by the user, the values created by each sensor pixel is recorded. Essentially. But, it's the AD converter output that gets recorded, not the analog voltage the pixel developed.
7. The processor will then use adjacent pixels of red, green and blue values to create an RGB pixel used to display in the final image. Maybe. In many cameras the actual process is proprietary.
It will compress the 12-bit data to 8-bit to create an imbedded jpeg thumbnail in the raw file. It will also compress the 12-bit data to an 8-bit full-size jpeg to record on the memory card if that is an option chosen by the user. Yep.
8. Once the raw file is saved, the data itself (i.e., the values recorded from each pixel) cannot be altered. No. The values each pixel recorded got altered twice. First in the amplifier circuits, then in the AD conversion. It can be manipulated many ways and many times, but the original data obtained from the sensor pixels are never changed even with heavy and multiple post-processing. The Raw data can indeed be permanently altered. Parametric raw converters are favored because they do not alter Raw pixel data. AParametric means all changes are line commands written in an .XML or .XMP metadata file appended to the Raw image data file.
9. In-camera settings, such as sharpening, white balance, contrast, saturation, etc. are saved along with the raw data, but not applied to it (unless the image is to be saved as a jpeg). Camera maker Raw converters can be configured to apply those settings to the Raw files made by that camera.
10. All digital cameras create the raw data, but not all of them are capable of recording it. Yes. Those that don't, or the option to record it is not chosen by the user, delete the sensor pixel data once the 8-bit jpeg is created. The pixel data is not really discarded, but is is no longer accessable on a pixel by pixel basis.
Have I got it right?