Chris Oswald commited on
Commit
b72843c
1 Parent(s): 8dbc1e8

reverted images to unsigned bytes

Browse files
Files changed (1) hide show
  1. SPIDER.py +2 -2
SPIDER.py CHANGED
@@ -55,8 +55,8 @@ def standardize_3D_image(
55
  image = np.transpose(image, axes=[1, 2, 0])
56
  # Resize image
57
  image = skimage.transform.resize(image, resize_shape)
58
- # # Rescale to UInt8 type
59
- # image = skimage.img_as_ubyte(image)
60
  return image
61
 
62
 
 
55
  image = np.transpose(image, axes=[1, 2, 0])
56
  # Resize image
57
  image = skimage.transform.resize(image, resize_shape)
58
+ # Rescale to UInt8 type (required for PyArrow and PIL)
59
+ image = skimage.img_as_ubyte(image)
60
  return image
61
 
62