microstruct_mapsNmetrics_ver1.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pestilli-teaching-2017 作者: francopestilli 项目源码 文件源码
def write_num_peaks(peaks, affine, out_name):
    # also print out a volume for number peaks
    # sum the values greater than 5 in the third dimension
    img = nib.Nifti1Image(np.sum(peaks.peak_values > 0, 3), affine)
    nib.save(img, out_name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号