Skip to content

Instantly share code, notes, and snippets.

@mcdlee
Created January 2, 2014 06:40
Show Gist options
  • Save mcdlee/8215758 to your computer and use it in GitHub Desktop.
Save mcdlee/8215758 to your computer and use it in GitHub Desktop.
Reconstruction of SPECT
import dicom
from skimage.transform import iradon
import pylab
import numpy
ds = dicom.read_file("img.dcm") # read a dicom of pre-reconstructed SPECT
array = ds.pixel_array
y36 = numpy.transpose(array[:,36,:]) #important!!
reconstruction_fbp = iradon(y36, output_size=64)
pylab.imshow(reconstruction_fbp)
pylab.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment