Can anyone please tell me the way I can read a dataset containing .mhd/.raw files in python?
Using skimage may be even easier after you installed SimpleITK
import skimage.io as io img = io.imread('file.mhd', plugin='simpleitk')
This will give you a numpy array with z,y,x sorting.