Reading *.mhd/*.raw format in python

前端 未结 4 1243
太阳男子
太阳男子 2020-12-15 18:26

Can anyone please tell me the way I can read a dataset containing .mhd/.raw files in python?

4条回答
  •  星月不相逢
    2020-12-15 18:43

    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.

提交回复
热议问题