fffiloni commited on
Commit
9ec4178
·
verified ·
1 Parent(s): f4daba4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
app.py CHANGED
@@ -25,17 +25,9 @@ matrices = {
25
  [0, 0, 0, 0, 1, 0, 0, 0, 1]
26
  ],
27
  # New matrices with improved red/cyan separation
28
- 'enhanced': [
29
- [0.9, 0, 0, 0, 0, 0, 0, 0, 0], # Left image: strong red only
30
- [0, 0, 0, 0, 0.95, 0, 0, 0, 0.95] # Right image: strong green and blue
31
- ],
32
- 'true_enhanced': [
33
- [0.4, 0.5, 0.1, 0, 0, 0, 0, 0, 0], # Left image: red channel from grayscale
34
- [0, 0, 0, 0, 0, 0, 0, 0.6, 0.4] # Right image: only blue and green
35
- ],
36
- 'dark_red': [
37
- [0.7, 0, 0, 0, 0, 0, 0, 0, 0], # Left image: slightly reduced red
38
- [0, 0, 0, 0, 1, 0, 0, 0, 1] # Right image: full green and blue
39
  ]
40
  }
41
 
@@ -154,7 +146,7 @@ with gr.Blocks(css=css) as app:
154
  )
155
 
156
  color_method = gr.Radio(
157
- ["optimized", "true", "mono", "color", "halfcolor", "enhanced", "true_enhanced", "dark_red"],
158
  label="Color Method",
159
  value="optimized",
160
  info="Select the color processing method"
 
25
  [0, 0, 0, 0, 1, 0, 0, 0, 1]
26
  ],
27
  # New matrices with improved red/cyan separation
28
+ 'dubois': [
29
+ [0.456, 0.5, 0.176, -0.04, -0.038, -0.016, -0.015, -0.021, -0.005], # Left image
30
+ [-0.043, -0.088, -0.002, 0.378, 0.734, -0.018, -0.072, -0.113, 1.226] # Right image
 
 
 
 
 
 
 
 
31
  ]
32
  }
33
 
 
146
  )
147
 
148
  color_method = gr.Radio(
149
+ ["optimized", "true", "mono", "color", "halfcolor", "dubois"],
150
  label="Color Method",
151
  value="optimized",
152
  info="Select the color processing method"