Problem with sct_qc

Running sct_qc gives me the following error:
sct_qc -i kurtosis_crop_moco_dwi_mean_seg-manual.nii.gz -p sct_deepseg_sc

--

Spinal Cord Toolbox (4.1.0)

*** Generate Quality Control (QC) html report ***
Traceback (most recent call last):
  File "/home/rosella/sct_4.1.0/scripts/sct_qc.py", line 86, in <module>
    main(arguments)
  File "/home/rosella/sct_4.1.0/scripts/sct_qc.py", line 79, in main
    process=args.p)
  File "/home/rosella/sct_4.1.0/spinalcordtoolbox/reports/qc.py", line 564, in generate_qc
    qcslice_type = qcslice.Axial([Image(fname_in1), Image(fname_seg)])
  File "/home/rosella/sct_4.1.0/spinalcordtoolbox/image.py", line 256, in __init__
    raise TypeError('Image constructor takes at least one argument.')
TypeError: Image constructor takes at least one argument.

thanks,
Rosella

can you try this:

sct_qc -i kurtosis_crop_moco_dwi_mean.nii.gz -s kurtosis_crop_moco_dwi_mean_seg-manual.nii.gz -p sct_deepseg_sc

note: to look at the usage and various options, run: sct_qc -h

1 Like