

def make_raw(mincfile, rawfile):
    raw = open(rawfile, 'wb')
    raw.write(subprocess.check_output(['minctoraw', '-byte', '-unsigned', '-normalize', mincfile]))

dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/isct_minc2volume-viewer.py make_raw/original