Skip to content

Instantly share code, notes, and snippets.

@mcdlee
Last active December 31, 2015 09:49
Show Gist options
  • Save mcdlee/7969130 to your computer and use it in GitHub Desktop.
Save mcdlee/7969130 to your computer and use it in GitHub Desktop.
display sinogram of Thallium SPECT
import dicom
import pylab
ds = dicom.read_file("img.dcm") # read a dicom of pre-reconstructed SPECT
array = ds.pixel_array
y30 = array[:,30,:]
pylab.imshow(y30)
pylab.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment