Is there a way in Python or any other language to convert .raw/mhd image data to Nifti/nii?
I can load the .raw/mhd file in python via SimpleITK as in this post: Reading *.mhd/*.raw format in python
import skimage.io as io
img = io.imread('file.mhd', plugin='simpleitk')
I am having a hard time exporting as nii with proper dimensions... would ideally use the header information in the original mhd file...
Thanks