Browse Source

Lösung des Aliasing Problems

Betrachtung des Pixels (40,152) im Fall Tree Bild ergab die Lösung für das Aliasing:
Bei negativen Werten in der Matrix T^1*sim_mat*T ergeben sich Überläufe. Lösung durch Anpassen der GammaKorrektur auf Abstände statt Absolutwerte.
master
Max Sponsel 3 years ago
parent
commit
9b76b10e32
2 changed files with 4 additions and 4 deletions
  1. 4
    4
      Code/Farbaenderung.py
  2. BIN
      Code/__pycache__/Farbaenderung.cpython-38.pyc

+ 4
- 4
Code/Farbaenderung.py View File

@@ -9,10 +9,10 @@ def gammaCorrection(v):
def reverseGammaCorrection(v_reverse):
if v_reverse <= 0.0031308:
return round(255 * (12.92 * v_reverse))
elif v_reverse > 0.0031308:
return round(255 * (1.055 * v_reverse ** 0.41666 - 0.055))
if abs(v_reverse) <= 0.0031308:
return round(255 * (12.92 * abs(v_reverse)))
elif abs(v_reverse) > 0.0031308:
return round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))
class Dyschromasie:

BIN
Code/__pycache__/Farbaenderung.cpython-38.pyc View File


Loading…
Cancel
Save