Loadvolume .nrrd file failed in mac, what’s wrong?
>>> masterVolumeNode = slicer.util.loadVolume("/Users/liguimei/Documents/slicerTempt/pedicle-triangle-planner/testa/vertebra2stl/CT-chest.nrrd")
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Applications/Slice98.app/Contents/bin/Python/slicer/util.py", line 865, in loadVolume
return loadNodeFromFile(filename, filetype, properties, returnNode)
File "/Applications/Slice98.app/Contents/bin/Python/slicer/util.py", line 636, in loadNodeFromFile
success = app.coreIOManager().loadNodes(filetype, properties, loadedNodesCollection)
ValueError: Could not find matching overload for given arguments:
('VolumeFile', {'fileName': '/Users/liguimei/Documents/slicerTempt/pedicle-triangle-planner/testa/vertebra2stl/CT-chest.nrrd'}, (vtkmodules.vtkCommonCore.vtkCollection)0x187e17f48)
The following slots are available:
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes, vtkMRMLMessageCollection userMessages) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes, vtkMRMLMessageCollection userMessages) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters) -> bool