-
Notifications
You must be signed in to change notification settings - Fork 251
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
Implement interpolation in LUT calculation #92
Comments
Maybe I misunderstood idea, but I've seen discussion in #87 and I'm not sure if that is proper way of development path - I mean optimization of computing power (just things should be as simple as possible) - so it is in current solution of powercalc component. I think it is no need to use complicated calculations in powercalc component, if any interpolation really should be done it should be done at stage creating LUT file and in my opinion LUT files really could be optimized (just example with "brighness 1" tells a lot), but I can't imagine simple solution for use variable step in measure script (so it could replace interpolation). |
I have an idea how to do it, this won't be any heavy calculations. But I'll lookup just the lower closest brightness value en highest closest brightness value. And than interpolate depending on the selected brightness level. I won't do anything in the other dimensions (hue, saturation, mired). |
As I mentioned in my other PR, I wrote this simple python script that reads an hs file and outputs a similar file with any desired step of brightness/hue/saturation using the interpolation provided by
I'm not even sure it works correctly, mathematically speaking, but I checked some outputs and the results seem good. I think that hue values cannot be interpolated in a meaningful way if the samples are too sparse, however brightness and even saturation should. |
I'm not that familiar with numpy and scipy yet, but this looks fine to interpolate values for the CSV this way using the magic of |
Proof of concept #170. Will need to do some further testing. |
This has been merged in master. |
No description provided.
The text was updated successfully, but these errors were encountered: