Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

open dicom images python

import pydicom as dicom
import matplotlib.pylab as plt

# specify your image path
image_path = 'data/train_images/sample.dcm'
ds = dicom.dcmread(image_path)

plt.imshow(ds.pixel_array)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #dicom #images #python
ADD COMMENT
Topic
Name
2+7 =