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')