From 74759f92b598602d20a54680f788ca1f78f5e81d Mon Sep 17 00:00:00 2001 From: Max Sponsel Date: Sat, 11 Jul 2020 09:42:55 +0200 Subject: [PATCH] =?UTF-8?q?Kommentar=20zur=20Berechnung=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 20 ++++++++++---------- Code/Dyschromasie.py | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3a7529d..f24ec56 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -66,7 +66,7 @@ - + @@ -78,28 +78,28 @@ - + - - + + - - + + - - + + - + - + \ No newline at end of file diff --git a/Code/Dyschromasie.py b/Code/Dyschromasie.py index 5fa99ee..5b04b5d 100644 --- a/Code/Dyschromasie.py +++ b/Code/Dyschromasie.py @@ -77,7 +77,8 @@ S_t = np.array([[1, 0, 0], #Simulationsmatrix fuer Tritanopi #Multiplikation der einzelnen Pixel for i in range(rows): for j in range(cols): - cb_image[i,j] = np.flipud(T_reversed.dot(S_p).dot(T).dot(np.flipud(cb_image[i,j]))) #ToDo Statt RBG ist noch BGR + cb_image[i,j] = np.flipud(T_reversed.dot(S_p).dot(T).dot(np.flipud(cb_image[i,j]))) + # Da OpenCV Pixelwerte in RGB speichert, aber BGR für den Algorithmus nötig ist, muss die Matrix mit flipud gedreht werden sim_image = np.copy(cb_image) sim_image = sim_image.astype('uint8')