No available image handler could decode this transfer syntax JPEG Lossless when read DICOM and ploting using matplotlib

后端 未结 3 693
旧巷少年郎
旧巷少年郎 2021-01-16 07:11

When i use pydicom in python3.6, there are some problem:

import pydicom
import matplotlib.pyplot as plt
import os
import pylab

filePath = \"/Users/zhuangrui         


        
3条回答
  •  滥情空心
    2021-01-16 08:03

    I've faced with the same problem, after doing some research on the suggested link above. I've managed to solve it by updating to the latest pydicom module "1.2.0" and installing gdcm. You can update the pydicom with pip install -U git+https://github.com/pydicom/pydicom.git

    You can find the latest gdcm here and this link explains the installation.


    I use anaconda and it's easier to install the gdcm package and solve the problem. If you use anaconda just type inside from your environment: conda install pydicom --channel conda-forge to get pydicom's latest and

    conda install -c conda-forge gdcm
    

    to get the gdcm. This resolves the problem. Hope these will help.

提交回复
热议问题