mattiaspaul / OBELISK

MIDL 2018 / MEDIA 2019: one binary extremely large and inflecting sparse kernel (pytorch)
MIT License
44 stars 9 forks source link

question about c3d #3

Open WMeixiang opened 4 years ago

WMeixiang commented 4 years ago

Hello, I am interested in multi-organ segmentation. My computer is window 10. I am new to c3d. I load c3d and run the covert_dicom.py, I have no idea there is something with the use of c3d or proc? I get an empty out, while I use the git bash command: c3d dicom-series-list dict2, I can get right thing. I have no idea why the out is b' '?

list_command = './c3d/bin/c3d -dicom-series-list '+dict2
proc = subprocess.Popen([list_command], stdout=subprocess.PIPE, shell=True)
out, err = proc.communicate()
p_status = proc.wait()
samra-irshad commented 3 years ago

Dont know why but it does not work on windows, I tried running the preprocessing pipeline on Linux using ITK version for Linux and it works. Another thing to check are the permission or execution settings for the c3d.exe file. I had to change them before I could make it work.