Chris Oswald commited on
Commit
f4616bb
1 Parent(s): 2c8bc60

reverting mask to uint8

Browse files
Files changed (1) hide show
  1. SPIDER.py +2 -3
SPIDER.py CHANGED
@@ -100,9 +100,8 @@ def standardize_3D_mask(
100
  mode='constant',
101
  cval=0,
102
  )
103
- # Rescale to uint16 type (required for PyArrow and PIL)
104
- # mask = skimage.img_as_ubyte(mask)
105
- mask = skimage.img_as_uint(mask)
106
  return mask
107
 
108
  # Define constants
 
100
  mode='constant',
101
  cval=0,
102
  )
103
+ # Rescale to uint8 type (required for PyArrow and PIL)
104
+ mask = skimage.img_as_ubyte(mask)
 
105
  return mask
106
 
107
  # Define constants