用python代码打开nii文件时,报错

软件版本
问题描述:>>>
Traceback (most recent call last):
File “”, line 1, in
File “D:\software\PycharmProjects\For Xv of Tiantan\For Xv of Tiantan\ColorMapper\Mapper.py”, line 45, in execute
slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(labelmapVolumeNode, seg)
TypeError: ambiguous call, multiple overloaded methods match the arguments

代码贴一下。

参数错误