vpv produces the following error when trying to open 3D images
import numpy as np
import vpv
A = np.random.randn(3,3,3)
vpv(A)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2150, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/debortoli/testdot.py", line 8, in
File "/usr/local/VideoProcessingViewer/misc/vpv.py", line 39, in vpv
write_img(o, name);
File "/usr/local/VideoProcessingViewer/misc/vpv.py", line 10, in write_img
im = Image.fromarray(img)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2153, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
vpv produces the following error when trying to open 3D images
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2150, in fromarray mode, rawmode = _fromarray_typemap[typekey] KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "/home/debortoli/testdot.py", line 8, in
File "/usr/local/VideoProcessingViewer/misc/vpv.py", line 39, in vpv
write_img(o, name);
File "/usr/local/VideoProcessingViewer/misc/vpv.py", line 10, in write_img
im = Image.fromarray(img)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2153, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type