Paolo-Fraccaro commited on
Commit
e3f7268
1 Parent(s): 94a65d5

stretch rgb more

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ from skimage import exposure
38
 
39
  def stretch_rgb(rgb):
40
 
41
- ls_pct=0
42
  pLow, pHigh = np.percentile(rgb[~np.isnan(rgb)], (ls_pct,100-ls_pct))
43
  img_rescale = exposure.rescale_intensity(rgb, in_range=(pLow,pHigh))
44
 
@@ -219,7 +219,7 @@ with gr.Blocks() as demo:
219
  btn.click(fn=func, inputs=inp, outputs=[out1, out2])
220
 
221
  with gr.Row():
222
- gr.Examples(examples=["Sri-Lanka_63307_S2Hand.tif",
223
  "Spain_7370579_S2Hand.tif",
224
  "USA_430764_S2Hand.tif"],
225
  inputs=inp,
 
38
 
39
  def stretch_rgb(rgb):
40
 
41
+ ls_pct=1
42
  pLow, pHigh = np.percentile(rgb[~np.isnan(rgb)], (ls_pct,100-ls_pct))
43
  img_rescale = exposure.rescale_intensity(rgb, in_range=(pLow,pHigh))
44
 
 
219
  btn.click(fn=func, inputs=inp, outputs=[out1, out2])
220
 
221
  with gr.Row():
222
+ gr.Examples(examples=["India_900498_S2Hand.tif",
223
  "Spain_7370579_S2Hand.tif",
224
  "USA_430764_S2Hand.tif"],
225
  inputs=inp,