u-net-brain-tumor icon indicating copy to clipboard operation
u-net-brain-tumor copied to clipboard

Data format issue

Open AizazSharif opened this issue 7 years ago • 3 comments

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.

AizazSharif avatar Feb 08 '18 07:02 AizazSharif

Use c3d from itk-snap website to convert .mha to .nii.gz format

poornasandur avatar Jul 07 '18 15:07 poornasandur

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!

cnuzh avatar Apr 03 '19 07:04 cnuzh

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

sapnii2 avatar Jun 17 '19 07:06 sapnii2