医疗图像数据处理

.nii

import numpy as np
import nibabel as nib # 3.0.0

nibimage=nib.load('test.nii')
imagedata=nibimage.get_fdata()
npimage=np.array(imagedata)
>>>npimage.shape
>>>[256,256,8,49] # [长,宽,冠、矢、横轴状,高]
posted @ 2019-12-25 16:21  Junzhao  阅读(300)  评论(0编辑  收藏  举报