Tag Archives: color constancy

How Is a Raw Image Rendered?

What are the basic low level steps involved in raw file conversion?  In this article I will discuss what happens under the hood of digital camera raw converters in order to turn raw file data into a viewable image, a process sometimes referred to as ‘rendering’.  We will use the following raw capture by a Nikon D610 to show how image information is transformed at every step along the way:

Nikon D610 with AF-S 24-120mm f/4 lens at 24mm f/8 ISO100, minimally rendered from raw as outlined in the article.
Figure 1. Nikon D610 with AF-S 24-120mm f/4 lens at 24mm f/8 ISO100, minimally rendered from raw by Octave/Matlab following the steps outlined in the article.

Rendering = Raw Conversion + Editing

Continue reading How Is a Raw Image Rendered?

System MTF from Bayer Sensors

In this and the previous article I discuss how Modulation Transfer Functions (MTF) obtained from every raw color plane of a Bayer CFA in isolation can be combined to provide an objective and meaningful composite MTF curve for the imaging system as a whole.  There are two main ways to accomplish this goal:

  • an input-referred linear Hardware System MTF (MTF_L) that reflects the mix of spectral information captured in the raw data, divorced from downstream color science; and
  • an output-referred linear Luminance System MTF (MTF_Y) that reflects the luminance channel of the image as neutrally displayed, hence may be more perceptually relevant.

Both are valid on their own, though the weights of the former are fixed for any Bayer sensor while the latter are scene, camera/lens and illuminant dependent.  For this reason I usually prefer input-referred weights as a first pass when comparing cameras and lens hardware in similar conditions. Continue reading System MTF from Bayer Sensors