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 available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM), Pillow (req. Pillow)
I'm not sure what to do. Any help would be.. helpful.