Hi,
I am trying to do batch processing to extract radiomic features using the radiomicscli module. The error are:
/media/useradmin/Disk2/Nathaniel/Testing_radiomics/APT034
[VTK] No input data assigned to “input Source Image”
[VTK] No input data assigned to “input Source Image”
[VTK] No input data assigned to “input Source Image”
[VTK] No input data assigned to “input Source Image”
Below is the code to run the cli module. could anyone please help me in this regard. did i define the correct params for the radiomics cli module.
apt_data = slicer.util.loadVolume(startPatientDirPath+“/T1c.nii.gz”)
#segmentation of the tumour loaded as volume and then converted to segmnetation node
seg = slicer.util.loadSegmentation(startPatientDirPath+"/outputFinal/transSimple-label.nrrd")
#seg = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLSegmentationNode")
#slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(labelmapVolumeNode, seg)
params = {}
params["image"] = slicer.util.getNode(apt_data.GetID())
params["mask"] = slicer.util.getNode(seg.GetID())
params["out"] = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLTableNode")
for i in range(1,4):
if i == 3:
continue;
params["label"] = i
cliModule = slicer.modules.slicerradiomicscli
cliNode = slicer.cli.runSync(cliModule, None, params)
slicer.mrmlScene.RemoveNode(cliNode)