-
Notifications
You must be signed in to change notification settings - Fork 5
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
Question: Example of a simple conversion #1
Comments
Hi there! First thing you'll need to do is get your RGB pixel as an RGBf32, then:
That should work. I'm typing this from memory as I'm unable to use my dev machine right now. Let me know how you get on! |
Heya! Chiming in because I'm after something something similar. I've used the code above and it works for me with modifications.
I'm trying to take output from a renderer in acesCG and display it as a srgb image in renderview. It works but I'd like to also get that nice nice highlight sofclip that DCCs have when using aces_cg in renderview, I guess there's some transfer function I'm missing ? Thanks a lot! PS: I've had some trouble with colorspace-rs printing few lines for every converted pixel which slowed the process a lot. I commented lines 122, 123, 136 and 141-143 in chromatic_adaptation.rs, rebuild and it was fine. |
Hi! thanks for that. Yes there's some print statements here and there I'm using while developing that I should get rid of. To your question - yes, what you're after requires implementing the RRT, which I haven't done yet since in my main use case I'll be putting images through Nuke and can do whatever grading looks I want there. Shouldn't be too hard to add though I'll add it to the list. |
Ah right! |
Hi there! Sorry for the late reply. I haven't had a chance to look at this yet. In principle what you're doing doesn't look immediately wrong but there's probably some normalization or out-of-gamut-type thing going on. |
Hey! No worries, I figured a way around yesterday: I grabbed XYZ CMF data from here: |
Hi, I'd like to use your library to convert some images from one colorspace to another. Most of this is a bit over my head. Would you mind providing an example of a simpler conversion?
I'd like to, for example, take an RGB pixel, defined by 3 float16 values, and convert it from "P3_D65", without transfer function (linear), to "sRGB" colorspace, with the sRGB gamma.
Thank you!
The text was updated successfully, but these errors were encountered: