推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
qile1
V2EX  ›  Python

Python 3 如何通过 pyexecjs 执行开源的 js 项目获取数据,想取 dicom 文件的压缩图像

  •  
  •   qile1 · Apr 8, 2018 · 3840 views
    This topic created in 3091 days ago, the information mentioned may be changed or developed.

    如题,找了好久,ptrhon3 无法安装 gdcm,pydicom 无法直接导出含有压缩 jpg 图像的文件,其他模块也基本依赖 gdcm 处理压缩 dcm 文件,看到 github 上面好多 js 解压缩 dicom 压缩图像的开源项目如: https://github.com/cornerstonejs/cornerstone 是否可以通过 js 中转,把 dicom 文件里面的图像传给 python,后期再处理?

    5 replies  •  2018-04-09 19:07:14 +08:00
    wdlth
        1
    wdlth  
       Apr 8, 2018 via Android
    为何不考虑 dcmtk ? js 那个解压缩的性能不行。
    qile1
        2
    qile1  
    OP
       Apr 8, 2018
    @wdlth dcmtk 调用需要编译,环境折腾了几次,不成功
    Hzzone
        3
    Hzzone  
       Apr 8, 2018 via iPhone
    py dicom 的 pixel array 不就是一个 bumpy array 吗,你用 opencv pil 之类的不能导出 jpg ?
    Hzzone
        4
    Hzzone  
       Apr 8, 2018 via iPhone
    numpy
    qile1
        5
    qile1  
    OP
       Apr 9, 2018 via Android
    @Hzzone 据说可以用 numpy 或者 pil 解码可以,一直没有成功,我技术能力不行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2529 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:48 · PVG 09:48 · LAX 18:48 · JFK 21:48
    ♥ Do have faith in what you're doing.