u-net-brain-tumor
u-net-brain-tumor copied to clipboard
Data format issue
I have acquired the dataset which is BRATS 2015. It contains .mha files but the code deals with .nii.gz files. Need help in this since ita related to my thesis project.
Use c3d from itk-snap website to convert .mha to .nii.gz format
Use c3d from itk-snap website to convert .mha to .nii.gz format
hi,I have some original .mha data,and some corresponding label data , .tre format ,do you know how to read the label data? Many thanks!
import SimpleITK as sitk
root_path = 'D:/Python-work/convertmhaTonii' mha_path = root_path + '/mhafile/brats_2013_pat0010_1/brats_2013_pat0010_1_Flair.mha' nii_path = root_path + '/niifile/brats_2013_pat0010_1/brats_2013_pat0010_1_Flair.nii' img = sitk.ReadImage(mha_path) sitk.WriteImage(img,nii_path)
Use above code to convert file format