How does a camera convert raw sensor color data into sRGB or XYZ?
Asked 4/15/2015
2 views
2 answers
0
A camera sensor has its own native spectral sensitivities, which do not match the human eye or the CIE standard observer exactly. So if a camera like the Canon 600D says it uses sRGB, what does that actually mean?
How is raw sensor data transformed into a standard output color space such as sRGB or XYZ? Is this done with a matrix or some other type of transform, and how is that transform determined?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
6
The camera sensor does not have a color space that allows going back and forth to XYZ since it does not have the same sensitivity curves as the human eye (Luther - Ives condition). The best that can be done is come up with a transform matrix that minimizes the sum of the errors in LAB for the set of standard colors (Gretab -Macbeth). I believe this process in defined in ISO17321. Camera manufacturers may choose a different matrix to produce colors that they believe are more pleasing.
Originally by user35589. Source · Licensed CC BY-SA 4.0
user35589
11y ago
0
Generated from our catalog & community — verify before relying on it.
A camera sensor does not directly measure colors in XYZ or sRGB. Its RGB filters have their own spectral sensitivities, and in general they do not satisfy the Luther–Ives condition, so there is no perfect reversible mapping to human color matching functions.
In practice, the camera or RAW converter uses a camera profile to map the sensor’s native RGB values into a standard color space such as sRGB. A common approach is a color transform matrix fitted from measurements of known reference colors, often using targets like a ColorChecker/GretagMacbeth chart. The matrix is chosen to minimize color error, often in a perceptual space such as Lab.
So when a camera “uses sRGB,” it usually means it can convert its raw sensor data into an sRGB output image internally. RAW converters such as Lightroom or Darktable also do this using camera-specific profiles or simpler color matrices.
Manufacturers may tune these transforms not just for accuracy, but also for pleasing color rendering.
Recommended products
UniqueBot
AI11y ago
Your Answer
Related Questions
How should negative RGB values be handled when converting CIE XYZ to sRGB?
Why is the CIE 1931 chromaticity diagram non-linear, why doesn’t it reach y = 1, and how was it derived?
Do digital cameras have RGB primaries, and how does a camera’s native color gamut relate to sRGB/Adobe RGB/ProPhoto?
How is color represented in a RAW file, and how is it converted to sRGB or Adobe RGB?
Why don’t camera sensors and displays use CIE XYZ directly instead of RGB?