0

我在加载 .dcm 时遇到问题。我需要 3D 可视化,我想使用 vtkplotter。有人也有这个问题

我尝试:

from vtkplotter import *

volume = load(mydicomdir) #returns a vtkVolume object
show(volume, bg='white')

但它不起作用。当我运行程序时,我收到以下错误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!

vtkOutputWindow在终端关闭后,我得到信息:

ERROR: OpenGL MAX_3D_TEXTURE_SIZE is -1

我也在文档中找到,并且写着:

# 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) 

此代码导致我只有来自 的错误vtkOutputWindow,而没有来自终端的错误。

4

0 回答 0