open-discussion
open-discussion > RE: How to convert .raw file format to nifty/nii..
Dec 17, 2020 07:12 PM | Roberto Mena
RE: How to convert .raw file format to nifty/nii..
You could use python and SimpleITK, to transform the file. Let`s
say you are in the folder `\CHB_train_Part1\CHB_train_Case01`
,
you would do:
>>> import SimpleITK as sitk
>>> img = sitk.ReadImage('CHB_train_Case01_FLAIR.nhdr')
>>> sitk.WriteImage(img, 'CHB_train_Case01_FLAIR.nii.gz')
you would do:
>>> import SimpleITK as sitk
>>> img = sitk.ReadImage('CHB_train_Case01_FLAIR.nhdr')
>>> sitk.WriteImage(img, 'CHB_train_Case01_FLAIR.nii.gz')
Threaded View
Title | Author | Date |
---|---|---|
Najam Ur rahman | Jan 31, 2020 | |
Roberto Mena | Dec 17, 2020 | |
Ghazn Khan | Aug 2, 2020 | |