Closed JuanCab closed 8 years ago
Yo... I have like these 16 bit unsigned integer images and the reducer script be all cough cough choke with this error message:
/Users/juan/anaconda/lib/python2.7/site-packages/reducer/image_browser.pyc in ndarray_to_png(x) 214 width = 600 # pixels 215 new_shape = np.asarray(width/shape[0]_aspect_shape, dtype='int') --> 216 x = np.asarray(Image.fromarray(x).resize(new_shape)) 217 x = (x - x.mean()) / x.std() 218 x[x >= 3] = 2.99
/Users/juan/anaconda/lib/python2.7/site-packages/PIL/Image.pyc in fromarray(obj, mode) 2165 except KeyError: 2166 # print typekey -> 2167 raise TypeError("Cannot handle this data type") 2168 else: 2169 rawmode = mode
TypeError: Cannot handle this data type
Closed by #116
Yo... I have like these 16 bit unsigned integer images and the reducer script be all cough cough choke with this error message:
/Users/juan/anaconda/lib/python2.7/site-packages/reducer/image_browser.pyc in ndarray_to_png(x) 214 width = 600 # pixels 215 new_shape = np.asarray(width/shape[0]_aspect_shape, dtype='int') --> 216 x = np.asarray(Image.fromarray(x).resize(new_shape)) 217 x = (x - x.mean()) / x.std() 218 x[x >= 3] = 2.99
/Users/juan/anaconda/lib/python2.7/site-packages/PIL/Image.pyc in fromarray(obj, mode) 2165 except KeyError: 2166 # print typekey -> 2167 raise TypeError("Cannot handle this data type") 2168 else: 2169 rawmode = mode
TypeError: Cannot handle this data type