-
Notifications
You must be signed in to change notification settings - Fork 36
Linear Color Space #14
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
Comments
Maybe you have to add linear-to-gamma conversion to the preprocess compute kernel. |
Perfect, thank you. Do you have a quick example of how I could add that. I assume I have to convert the rgb component using a method similar to this, only in the other direction? http://chilliant.blogspot.com/2012/08/srgb-approximations-for-hlsl.html?m=1 |
Yes. |
Thank you, so I tried adding the above formula to both the Preprocess Compute Shader and the Compositor Compute Shader but there seems to be some issues with it. The closest I have come to getting the same quality of the cutout was if I added the conversion twice in the Compositor. Do you by any chance know exactly where in the flow should I be converting from Gamma to Linear? |
After struggling with this one for a while, I found that if you change line 84 of SegmentationFilter.cs to |
perfect. Works just as expected. Consider this resolved and maybe should be added to the project |
Does the project support the Linear Color Space option, background removal seems to be greatly reduced in quality when switching from Gamma to Linear Color Space?
The text was updated successfully, but these errors were encountered: