gll89的个人博客分享 http://blog.sciencenet.cn/u/gll89

博文

Pydicom基础知识

已有 2386 次阅读 2019-6-12 10:47 |个人分类:Python|系统分类:科研笔记

  1. 在ubuntu上安装: conda install -c conda-forge pydicom

  2. 读取dicom并可视化

    import pydicom, os

    import matplotlib.pyplot as plt

    path = os.path.join(root, file)

    im = pydicom.dcmread(path)   # type of data is FileDataset

    px = im.pixel_array          # convert im to the type of numpy.ndarray

    plt.figure()

    plt.imshow(px)

    plt.show()          # do not forget this

  3.  关于DICOM预处理的很棒的网站:

        https://www.raddq.com/dicom-processing-segmentation-visualization-in-python/

4. 




https://blog.sciencenet.cn/blog-1969089-1184509.html

上一篇:在ubuntu上安装: conda install -c conda-forge pydicom 读取dicom并可视
下一篇:[转载]肋骨结构
收藏 IP: 60.191.2.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 13:26

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部