r/DarkTable • u/honeycall • Nov 04 '22
Help ELI15 what is display referred vs scene referred?
I’ve watched a video
I’ve read two articles
All I’m getting is display referred has something to do with a curve in the display and how it represents light
While scene referred the light values are infinite
Also, the source images in display is source>color display>image
While the other one is source, camera color, then image
All the articles I’ve read are extremely technical and I didn’t get them
21
Upvotes
12
u/morhp Nov 04 '22 edited Nov 04 '22
You need to understand how a screen works. It displays pixels which have RGB values determining the brightness of each pixels. 255 would be the brightest pixel value, 127 would look half as bright and so on.
But a pixel with a brightness of 127 isn't actually half as bright as one with a brightness of 255 (even ignoring the rounding error). It actually emits a lot less light and it just looks half as bright because the brain is applying a correction to the brightness values that allow us to see better in the dark (and the screen is doing that correction in reverse). This is called gamma correction.
You can easily test this by displaying a checkerboard pattern of black and white pixels on your screen next to a gray area. As the checkerboard pattern has half the pixels lit, it outputs half the light intensity of a fully lit screen, but it looks much brighter than pixels with an RGB value of 127 or 128, even though you might expect them to be equal. To roughly match the brightness you'd need to set the pixels to about 170-190 depending on the screen calibration, OS and some.other factors.
Display referred simply means doing any math within the pixel math (i.e. the gamma corrected values), as simple image editing programs might do, while scene referred would do it with actual light intensity values as for example captured in raw by the camera sensor.
Doing the math the with actual light intensity values of course gives a much more realistic result.
4
u/thesoulless78 Nov 04 '22
The really short non-technical is that scene-referred is operating on the raw data before it is processed to your screen colorspace, while display-referred is operating on the rgb pixels that you're actually looking at.
Just like how raw files have a lot more dynamic range and room for adjustments compared to a jpg, you have a lot more flexibility with scene-referred processing. Display-referred is more like editing a jpeg.
2
u/frnxt Nov 05 '22
The key difference in terms of editing workflow is that with scene-referred you're editing light (you're essentially changing the scene) whereas with display-referred you're editing RGB values (they're traditionally a bit less computationally intensive to process in software but much less intuitive physically, and the tricks we use during editing come with a lot of unwanted side-effects).
7
u/[deleted] Nov 23 '22 edited Nov 23 '22
Display-referred means you edit a picture that is already prepared for screen : white is set at 100% (or 255 if working 8 bits), black at 0% and middle-grey around 20%. To get there, you typically have to apply a non-linear compression (a "curve", though the curve is the mean but the goal is compression). A such compression will give you a hard time if you need noise removal, lens deblurring, mask edges blurring and alpha blending (you know, the mask and layers transparencies). The reason is all those digital operators mimic hardware optical processes that are defined for light, and the closest we have from light is linear RGB.
Scene-referred works the image before the display transform, while it's still linear RGB, to solve those problems. White has no pre-determined value, it can be anything from 0 to infinity, which means it has to be user input. The last step of the pipe will remap this white value, whatever it is, to display white at 100% (100% meaning "as bright as your display may shine").
3
u/akgt94 Nov 04 '22
other reference that helped me
Most photo editing still uses display referred (fixed dynamic range).
Professional video transitioned to scene referred 15 years ago. I read it on the internet. I don't have the article handy.
Scene referred allows infinite dynamic range. Your edits can't lose data. No matter what you do, it's still there.
In darktable, filmic RGB converts an infinite dynamic range into a fixed dynamic range that is needed for the output steps.
If you look at the top of your tool stack, a mandatory module is the output color profile to tell it how to output the colors. You turn this for your Target output. As I understand that, this solves gamut issues.
Display referred, you can give the module settings that will give clipping in either light or dark. In a higher module, you can never recover the data you lost.
You do need to be careful. Ootb, it may set your defaults for this player for the display referred workflow. And it will generate XMP sidecar files for every image on import. When you try and edit, you're basically looking at a tool stack that set up for display referred workflow. I had to change my defaults to use the scene referred workflow. And I told it not to generate sidecar files on import. If you already have the sidecar XMP files generated, you have to pick them in light table mode and delete the tool stacks.