I have problem with loading .dcm. I need to have 3D visualisation and I would like to use vtkplotter. Someone has also this problem.
I try:
from vtkplotter import *
volume = load(mydicomdir) #returns a vtkVolume object
show(volume, bg='white')
but it doesn't work. When I run the program I get errors from vtkOutputWindow
:
ERROR: In C:\VPP\standalone-build\VTK-source\IO\Image\vtkDICOMImageReader.cxx, line 307
vtkDICOMImageReader (000002866DCBE730): No memory allocated for image data!
ERROR: In C:\VPP\standalone-build\VTK-source\Rendering\VolumeOpenGL2\vtkVolumeTexture.cxx, line 756
vtkVolumeTexture (000002866DDCEC50): Capabilities check via proxy texture 3D allocation failed!
And after closing vtkOutputWindow
in terminal I get information:
ERROR: OpenGL MAX_3D_TEXTURE_SIZE is -1
I found also in the documentation, and there is written:
# Return a list of meshes by reading all files in a directory # (if directory contains DICOM files then a Volume is returned) g = load(datadir+'timecourse1d/') show(g)
This code causes that I have only errors from vtkOutputWindow
, without error from terminal.