Commit d95493d4 authored by Yin Xi's avatar Yin Xi
Browse files

Update DICOM2NRRD.py

parent 5be0d7f8
......@@ -66,6 +66,8 @@ def DCM2NRRD(input_path,output_path,getROI,exptype):
series_reader = sitk.ImageSeriesReader()
file_list = series_reader.GetGDCMSeriesFileNames(all_path[j])
n_slice = len(file_list)
if n_slice == 0:
continue
#read all images as sitk
if n_slice >1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment