Paolo-Fraccaro commited on
Commit
63d3c60
1 Parent(s): e3b141c
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,8 +41,8 @@ from skimage import exposure
41
  def stretch_rgb(rgb):
42
 
43
  ls_pct=0
44
- pLow, pHigh = np.percentile(rgb1[~np.isnan(rgb1)], (ls_pct,100-ls_pct))
45
- img_rescale = exposure.rescale_intensity(rgb1, in_range=(pLow,pHigh))
46
 
47
  return img_rescale
48
 
 
41
  def stretch_rgb(rgb):
42
 
43
  ls_pct=0
44
+ pLow, pHigh = np.percentile(rgb[~np.isnan(rgb)], (ls_pct,100-ls_pct))
45
+ img_rescale = exposure.rescale_intensity(rgb, in_range=(pLow,pHigh))
46
 
47
  return img_rescale
48