-
Notifications
You must be signed in to change notification settings - Fork 25
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
HSI out of bounds values and hue shifting #38
Comments
FYI @dfcreative |
Thanks for the catch! Can you help with fixing that? |
There are so many ways to express this conversion, I'm not finding the algorithm you modeled. I'm coding it from scratch to see if I get better behavior. Will share when I'm done. |
I implemented this algoirthm and got these results:
Despite using two different algorithms, our results are in rough agreement. There must be something about HSI that I'm not understanding. |
I experimented with bounding the RGB outputs to 0..255 and the colors I get seem quite reasonable for my image transformations. I think that's all you need to do! |
The HSI conversion will take valid intensity values and convert them to RGB bytes > 255.
Also, shifting the intensity by a small amount can produce a rather large change in hue.
Yields:
The text was updated successfully, but these errors were encountered: