Open miziha-zp opened 4 years ago
to make the code work personally I converted dicom to mhd file type.
can you provide the code transform dicom2mhd? it will make it easy for us to test your code. Thx
发自我的iPhone
在 2020年7月8日,下午9:00,gokceay notifications@github.com 写道:
to make the code work personally I converted dicom to mhd file type.
sth like this will work: import SimpleITK as sitk
dirname = 'B'
series_IDs = sitk.ImageSeriesReader_GetGDCMSeriesIDs(dirname)
if not series_IDs: print('No series in directory ' + '\'' + dirname + '\'')
for series in series_IDs: sitk.WriteImage(sitk.ReadImage(sitk.ImageSeriesReader_GetGDCMSeriesFileNames(dirname, series)), series + '.mhd')
Thank you for sharing your code.
thanks for your code
you are welcome :D thanks a lot for the pycudadrr code Yuta ✌🏻
when I specific mhd_filename with a path of dicom, an error occured like this:
can you give more detail about the parameter...