Dear Dr Cohen-Adad,
I am trying to denoise my T2w images. While running this command: sct_denoising_onlm -i T2.nii.gz
I encounter the error that I am pasting here.
–
Spinal Cord Toolbox (4.0.2)
Applying Non-local mean filter…
total time: 1.9073486328125e-06
vol size
Traceback (most recent call last):
File “/home/willi/sct_4.0.2/scripts/sct_denoising_onlm.py”, line 194, in
main(file_to_denoise, param, output_file_name)
File “/home/willi/sct_4.0.2/scripts/sct_denoising_onlm.py”, line 137, in main
before = data[:, :, axial_middle].T
IndexError: only integers, slices (:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indices
Could you please help me with that?
Thank you very much!
Kind Regards,
Merve