-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: ocioview - Chromaticities Inspector #1914
PR: ocioview - Chromaticities Inspector #1914
Conversation
We discussed about using the CIE XYZ Interchange space with @doug-walker et al. this morning. This would work but would not give the final encoded chromaticities. That might be an acceptable compromise. |
Having put quite a bit of thoughts into that one here are some suggestions:
Now some questions for @michdolan: The current |
Looks good @KelSolaar (and nice choice of books)! I assume you are going to add settings to choose the chromaticity space to use, switch between 2D / 3D representation, optional gamut triangle (and maybe more) later? |
6223661
to
c9278c5
Compare
Yes, that is the plan! I haven't had too much time to look into it but was slowly getting back to that. Might be worth a discussion as per my previous comment about the new API needs I have. I could implement them from that PR too. @michdolan : Any thoughts? |
Sorry for the long delay in replying. This looks awesome @KelSolaar ! I think for getting the needed data (input color space, output transform) we could wrap the processor being passed to the message router in a data class that contains info about the processor's construction. That would be useful elsewhere too. |
In #1966 I added a new
|
bbce544
to
c41dbbe
Compare
Did some good progress over the weekend and tonight: https://www.youtube.com/watch?v=x5wqywe5mSA I spent quite a lot of time finding out what would be a useful UX for the inspector and went with 3 layers of transformation, the benefit is that it allows to show the fully processed chromaticities compared to my suggestion above: #1914 (comment)
The user HAS to choose the chromaticities input space, it might looks cumbersome but the benefit is that one could load the ACES 1.0 config, define the ROLE_INTERCHANGE_DISPLAY, apply the sRGB ODT, use the Linear sRGB as chromaticities input space and see the final image chromaticities. I implemented some new convenient functions in Colour to help the CIE 1960 UCS and CIE 1976 UCS Chromaticity Diagrams. |
4306616
to
247939b
Compare
I think that this is ready for a first review, at least to discuss about it :) |
247939b
to
6209abd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work @KelSolaar !
54166fc
to
e9bdfba
Compare
I committed the suggestion but seems like EasyCLA is being a prick... Do we have a process for that or does it look like I will need to rebase/reword the commits? |
Sorry about the EasyCLA issue... You may need to amend the commit and force push again. |
e9bdfba
to
e971625
Compare
Trimmed yourself from the commits @michdolan! |
Great work @KelSolaar!
Am I understanding correctly that this transformation is currently a no-op as the latter is also XYZ D65?
When applying the sRGB ODT, shouldn't the Chromaticities input space be Display sRGB in that case (sRGB EOTF encoded instead of Linear)? |
As of right now, indeed, so we can optimise it but I left it as a test case for now, allows verifying that any working space produce the same stuff.
Depends if one wants to see the encoded or linear chromaticities, both would be valid options, e.g., you want to ignore the EOTF inverse effect. |
…ironment. Signed-off-by: Thomas Mansencal <[email protected]>
Signed-off-by: Thomas Mansencal <[email protected]>
…ition to `color_space_to_rgb_colourspace`. Signed-off-by: Thomas Mansencal <[email protected]>
…dule. Signed-off-by: Thomas Mansencal <[email protected]>
Signed-off-by: Thomas Mansencal <[email protected]>
e971625
to
d7602f3
Compare
Merging this one down! |
Merged code is broken, you didn't update the |
Thanks @mmdanggg2! I thought I had checked that the branch was fully working after I rebased but looks like I did not. This should be fixed in #1985 whenever it is merged. |
@mmdanggg2 : This should be good now! |
A temporary PR to park and discuss about the work on the Chromaticity Inspector.
Most of the base pieces are here but there are a few questions, the principal one being:
In order to plot chromaticities with colours, we need to be able to know which RGB colourspace we are coming from to do:$RGB \rightarrow CIE\ XYZ \rightarrow CIE\ xy(Y)$
The issue is OCIO cannot really do that transformation, Colour can do it but this assumes that there is a matching RGB colourspace builtin (or a corresponding one added). If only we had primaries and whitepoints... :)
I'm assuming ACES2065-1 in the above image. Suffice to say that we are interested in both the chromaticities of the original image and that of the transformed one.
Food for thoughts!
Paging @remia, @michdolan and @doug-walker!