Answers for "open dicom images python"

0

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)
Posted by: Guest on August-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language