🌈 搜索
📅  最后修改于: 2022-03-11 14:46:08.723000             🧑  作者: Mango
import nibabel as nb import numpy as np img = nb.load("path/to/img.nii") num_vox = np.sum(img.get_data() > 0)