-
Notifications
You must be signed in to change notification settings - Fork 31
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
Replace "Gamma" and "Tonemapping" with "transfer function" #178
Comments
@masc4ii Can you help me add https://github.com/codeplea/tinyexpr to MLV App's source code, in the processing folder (just the two files tinyexpr.c and tinyexpr.h), I am not sure how to make Qt compile them. |
Sure. f56f841 Here you are. |
This will require a change to Qt interface and MASXML format. Gamma and tonemapping function will be replaced by "Transfer function" expression string, because "Transfer function" is a more correct term and gamma is a meaningless word. This way it will be much more customisable as well. Maybe we should also add a box for transfer function presets, as it's not easy to memorise them. For updating old MASXML, I will write a function that converts a combination of "Gamma" and "Tonemapping function" in to a transfer function expression string. Examples: |
Yes, such a function would be good. I think 99% of the people just use those presets. So it will be good to still have this combobox, as preset selection. No problem, if we could change the formula then. |
Yep, and those who want to, will be able to add their own functions or log curves.
Maybee, but it's going to be more difficult to implement, also more difficult on the interface side. |
That is true. But maybe it is worth it... |
Ah yes it could be done from the interface, using the function that converts gamma and tonemap function to a string. I'll be honest. the thing that motivated me to do this was zeek using gamma and log 😂 |
Now I need to add a conversion from "Gamma" and "Tonemaping function" to transfer function expression string (so we can have MASXML compatibility, and maybe have old mode in GUI if you want to add that). |
87370c9 |
Thank you |
Happy new year everyone! Sorry about the massive disappearance recently. This needs to be finished :) I have left MLV App in a somewhat unusable state. But now I think it's time to fix it and release soon, as it's a new year and there is so much exciting Magic Lantern news. Will be committing plenty of improvements soon.
Yes! We should definitely do it like this. Are you ready to implement this? You can use the |
Happy new year to you too! Nice to have you back! I am ready, yes. I was already working with this function, but it makes life hard, because I need some logic to ask for tonemapping when changing gamma and the other way. And I think I had a problem with this function, because sometimes gamma is 1/x and sometimes it is x. So the try to use it failed. |
Trying that. |
I am going to implement a method for passing a string math expression to create custom tonemapping functions, something I have wanted so long. It will be amazing for experimentation. Also quite easy to do, especially if I use some premade expression parser library.
This seems like a great option: https://github.com/jamesgregson/expression_parser
The text was updated successfully, but these errors were encountered: