Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sRGB EOTF incorrect value for linear section?

See original GitHub issue

sRGB EOTF threshold error?

In colour/colour/models/rgb/transfer_functions/ in the function “def oetf_reverse_sRGB(V):” V <= oetf_sRGB(0.0031308),

I was thinking this was an incorrect value till I parsed the code more… Now I see that you’re using the oetf_sRGB to create the “inverse”… the specified value per ISO spec is 0.04045 (or the unrounded 0.0404482) … as a thought the following would reduce overhead wouldn’t it? (Or is this solving some other problem? Perhaps a comment indicating the reasons as at first glance it look like the wrong threshold value is in place).

L = np.where( V <= 0.0404482, V / 12.92, spow((V + 0.055) / 1.055, 2.4), )

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

KelSolaarcommented, Apr 29, 2019

You are welcome! I will close this one but feel free to ask any more questions!

Myndexcommented, Apr 29, 2019

Thank you @KelSolaar — I really appreciate the quick tutorial on numpy !

Read more comments on GitHub >

github_iconTop Results From Across the Web

sRGB piece-wise EOTF vs pure gamma - VWG
I'm from power law 2.2 gamma club, all sRGB EOTF screens are evil ... function uses an offset 2.4 power function with a...
Read more >
sRGB EOTF: Pure Gamma 2.2 Function or Piece-Wise Function?
It took me 4 years to decide that the sRGB linear “toe” needs to be part of reference. CRTs were pure power function...
Read more >
Dealing with sRGB - The Colorist & Color Grading Forum
It is output-referred, in that it defines the desired colorimetry on an sRGB display... The sRGB EOTF is not a simple gamma 2.2....
Read more >
sRGB to and from Linear Light - Shadertoy
So to be clear, if an image is listed as encoded with sRGB, it is a safe assumption that it was *correctly* encoded...
Read more >
Benq SW2700PT sRGB mode gamma - no linear section
Correct me if I'm wrong but I believe the sRGB linear section extends to between 10 and 11 in terms of 8-bit values....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found