Closed Minxiangliu closed 2 years ago
This looks like your DICOM files aren't being recognized as "valid" by dicom2nifti. Can you run the following code from the same directory? This should help isolate what is going on.
from dicom2nifti.compressed_dicom import read_file, is_dicom_file
from dicom2nifti.common import is_valid_imaging_dicom
if is_dicom_file('M0_1/IM-0001-0001.dcm'):
print('DICOM file!')
dicom_headers = read_file('M0_1/IM-0001-0001.dcm')
if is_valid_imaging_dicom(dicom_headers):
print('Valid DICOM!')
else:
print('Invalid DICOM!')
else:
print('Not DICOM file')
I have a series of dicom files
(.dcm)
for each patient that I want to convert tonii.gz
files, but nothing happens (even error info) with the following conversion...The error occurs when trying other methods....
Error Log:
File structure:
Environment: windows10, python: 3.6, dicom2nifti2.3.0
Where am I doing wrong? Thanks in advance!