Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static double ApplyGamma(double v)
- {
- if (v <= 0.0031308)
- return Cut(v * 12.92);
- return Cut(1.055 * Math.Pow(v, (1.0 / 2.4)) - 0.055);
- }
- private static double ApplyInverseGamma(double v)
- {
- if (v <= 0.04045)
- return v / 12.92;
- return Math.Pow((v + 0.055) / 1.055, 2.4);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement