Skip to content

About ST2084 and PQ Implementation. #712

Answered by KelSolaar
codycuellar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @codycuellar,

I'm not sure to follow you exactly, here is what I get trying to match your code values / output:

import colour
colour.models.oetf_ST2084([100, 600, 1000, 4000, 10000])

# array([ 0.50807842,  0.69629409,  0.7518271 ,  0.90257239,  1.        ])

And the next above figure from Steve Shaw:

import numpy as np
np.round(colour.models.oetf_ST2084([100, 400, 1000, 2000, 5000, 10000]) * 1023).astype(np.int_)

# array([ 520,  668,  769,  846,  948, 1023])

As you can see, we are bang on, so maybe I misunderstood something, which could be because I'm at work and very busy atm :)

Replies: 15 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #401 on January 16, 2021 22:40.