Update app.py
Browse files
app.py
CHANGED
@@ -35,16 +35,6 @@ matrices = {
|
|
35 |
]
|
36 |
}
|
37 |
|
38 |
-
const mat3 left_filter = mat3(
|
39 |
-
vec3(0.4561, 0.500484, 0.176381),
|
40 |
-
vec3(-0.400822, -0.0378246, -0.0157589),
|
41 |
-
vec3(-0.0152161, -0.0205971, -0.00546856));
|
42 |
-
|
43 |
-
const mat3 right_filter = mat3(
|
44 |
-
vec3(-0.0434706, -0.0879388, -0.00155529),
|
45 |
-
vec3(0.378476, 0.73364, -0.0184503),
|
46 |
-
vec3(-0.0721527, -0.112961, 1.2264));
|
47 |
-
|
48 |
def make_anaglyph(left_img, right_img, color_method):
|
49 |
"""Generate an anaglyph from left and right images using the specified color method"""
|
50 |
if left_img is None or right_img is None:
|
|
|
35 |
]
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
def make_anaglyph(left_img, right_img, color_method):
|
39 |
"""Generate an anaglyph from left and right images using the specified color method"""
|
40 |
if left_img is None or right_img is None:
|