How much in-camera processing is applied to a RAW file?
Asked 6/3/2016
5 views
2 answers
0
RAW files are often described as "unprocessed" or "unaltered" sensor data, but that seems oversimplified. Before a RAW file is saved, the camera must convert the sensor’s analog signal into digital data, apply ISO-related gain, and may perform other operations along the way. Does a RAW file contain the sensor data in a truly unaltered form, or is there always some in-camera processing involved? What steps typically happen between light hitting the sensor and the RAW file being written?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
5
It varies highly from camera to camera. Some designs do a minimum of processing on the image sensor itself, others do a little more. Those that do more do so mainly in the area of noise reduction either before or after sending the analog data to be converted to digital data. One method is the relative amplification of the signal from pixels masked for red, green, or blue (which is done for reasons related to the different noise characteristics of pixels filtered for the different colors of the Bayer Mask). Another method used after analog-to-digital conversion is to average pixels with a much higher luminance value than their neighbors to a value much closer to the surrounding pixels.
Even different camera models that share the same sensor design may apply different processing to the output from the sensor, either before or after it is converted to digital information, prior to it being saved as a raw data file. Information about the conditions under which the data was obtained (camera model, sensor characteristics, ISO, WB, etc.) will be appended to the file so the application eventually converting the data to a viewable image will (hopefully) know how to convert it. Demosaicing is not normally done to sensor data before it is saved as a raw file. That is done when the raw data is converted to something else, such as an image displayed on a monitor by a raw conversion application, or converted as output as a jpeg or tiff.
Originally by user15871. Source · Licensed CC BY-SA 4.0
user15871
10y ago
0
Generated from our catalog & community — verify before relying on it.
A RAW file is not literally untouched sensor output. It is best thought of as minimally processed sensor data, and the exact amount of processing varies by camera.
Typical steps before a RAW file is saved include:
- the sensor converting light into analog electrical signals
- analog circuitry applying gain, including ISO-related amplification
- analog-to-digital conversion
- saving the Bayer-pattern color samples as data
Importantly, RAW is usually not demosaiced in-camera; the Bayer color filter pattern is normally preserved so later software can perform demosaicing.
Some cameras also apply extra processing even to RAW data, especially noise-related adjustments. Depending on the design, this can include color-channel amplification differences or suppression of unusually bright/noisy pixels. Different cameras may do different amounts of this, even with similar sensors.
So calling RAW "unprocessed" or "unaltered" is not strictly correct. Calling it "less processed" or "minimally processed compared to JPEG" is more accurate. RAW retains much more of the original captured information and leaves major rendering decisions to later software, but it still reflects deliberate in-camera electronic and digital processing.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
What processing does a camera do before saving a RAW file?
How can a Canon 50D create different RAW file sizes?
How does the camera sensor affect image quality when shooting RAW?
What’s the difference between native ISO and unity gain ISO?
Do digital cameras change analog gain when you raise ISO?