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/", line 86, in <module>
  File "/home/rosella/sct_4.1.0/scripts/", line 79, in main
  File "/home/rosella/sct_4.1.0/spinalcordtoolbox/reports/", line 564, in generate_qc
    qcslice_type = qcslice.Axial([Image(fname_in1), Image(fname_seg)])
  File "/home/rosella/sct_4.1.0/spinalcordtoolbox/", line 256, in __init__
    raise TypeError('Image constructor takes at least one argument.')
TypeError: Image constructor takes at least one argument.


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