Genauere Berechnung der Oberen Werte
Änderung des Return-Wertes auf 255 - dem Delta zwischen Übersteuerung und dem Maximialwert zur besseren Farbdarstellung
This commit is contained in:
1 parent
1cc63c6a30
commit
fd0161e320
2 files changed
+1
-1
No files matched your search
@@ -14,7 +14,7 @@ def reverseGammaCorrection(v_reverse):
|
||||
return round(255 * (12.92 * abs(v_reverse)))
|
||||
elif abs(v_reverse) > 0.0031308:
|
||||
if (round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))) > 255:
|
||||
return 255
|
||||
return 255 - (round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))- 255)
|
||||
else:
|
||||
return round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user