I am trying to display view the DICOM image but I keep getting this error.
ds = dicom.dcmread(image_path) plt.imshow(ds.pixel_array)
TypeError: Invalid shape (