Physics dictates that light is additive by nature, meaning that light from two sources illuminating an object would be precisely the sum of that object illuminated by each light separately. For an ideal linear camera, the captured images would preserve this additive effect.
To perform the linearity test, we use white channel of two light sources (A and B). Let's denote the ambient light as E.
The software captures averaged images from the calibration video:
- Both lights off = (E), image "1"
- First light on = (A + E), image "4"
- Second light on = (B + E), image "5"
- Both lights on = (A + B + E), image "2"
If we have correctly transformed colors from raw to linear, then:
(E) + (A + B + E), image"3" should equal (B + E) + (A + E), image "6".
To test this, we apply our color transform, perform image addition, and examine the difference between the two sums. If the transform we applied is correct, we will observe zero difference (a black image).
image "7" = image "3" minus image "6"
image "8" = image "6" minus image "3"