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

后端 未结 3 691
旧巷少年郎
旧巷少年郎 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 07:45

    With pydicom, you need an appropriate image handler also installed to handle compressed image types.

    For JPEG lossless, in theory the following should work: jpeg_ls, gdcm, or Pillow with jpeg plugin. All of these also require Numpy to be installed. See the discussion at https://github.com/pydicom/pydicom/issues/532.

    There is also a pull request in progress to add more descriptive error messages for what image handlers are needed for different images.

提交回复
热议问题