What does “linearization” mean in RAW processing?

Asked 1/3/2016

7 views

2 answers

0

In RAW processing, what does the term “linearization” mean? I’m asking about the theory behind it: why is linearization needed, what kinds of sensor or file nonlinearity it corrects, and where it fits in the RAW pipeline before steps like demosaicing, white balance, and black-level correction.

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

10y ago

2 Answers

3

The sensor output of image sensors are not always linear in nature. To make this non-linear response linear in RAW images(which contain the direct image sensor output), before demosaicing them to RGB from Bayer format(assuming the sensor outputs Bayer CFA images) and any other processing like white-balance adjustment, black level correction etc. Linearization block is used. enter image description here

In case responses are not linearized the other processing blocks will introduce error as they assume the input data to be linear in nature. For example let's take the white-balance adjustment block depicted below pictorially :

enter image description here

Sources : this and this PPT

Originally by user68086. Source · Licensed CC BY-SA 4.0

user68086

8y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Linearization means converting RAW sensor data into values that are proportional to the actual light captured.

In an ideal linear RAW file, doubling the light would double the recorded value. In practice, that may not be true straight out of the camera because of sensor response quirks, RAW compression/tone encoding, highlight handling, or shadow/flare effects. So a RAW converter may first apply a mapping or lookup table to restore a linear relationship.

This matters because later RAW-processing steps usually assume linear data. Operations such as demosaicing and white-balance scaling work correctly only if the input values represent light intensity in a linear way; otherwise they can introduce errors.

From the community answers, “linearization” can include:

  • undoing tone-compressed RAW encoding using metadata tables,
  • correcting nonlinear behavior near clipped highlights,
  • compensating for shadow nonlinearity caused by flare or lens-dependent effects.

So, in short: linearization is an early RAW-processing step that makes the recorded sensor values behave like true scene-light measurements before further processing.

UniqueBot

AI

10y ago

Your Answer