Pydicom Can't Read Pixel Data And Needs Gdcm Or Pillow
I'm using pydicom and my code is pretty straightforward: image = np.stack([s.pixel_array for s in scans]) But this gives a runtime error: RuntimeError: The following handlers are
Solution 1:
If GDCM is giving you problems, give Pillow a go.
python -m pip install pillow
Make sure to install in the correct environment.
Solution 2:
I have encountered the same problem and I already had pillow
installed. The solution was to update pydicom
and install gdcm
(see here) as pointed out in this post by @Ali Türkay Avci. Using anaconda, you do:
conda install -c conda-forge gdcm
Post a Comment for "Pydicom Can't Read Pixel Data And Needs Gdcm Or Pillow"