summaryrefslogtreecommitdiffstats
path: root/samples/python/s013_constraints.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-03-18 16:55:00 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-03-18 16:55:00 +0100
commita86c7735d1dd20ec884c256950b8a9575f3ebdca (patch)
treeab4e4e47ba92618562f84a47de587878f4d34af6 /samples/python/s013_constraints.py
parent65a607967e71d68ec32f34b7cf61fd8d891cc550 (diff)
parentf603045f5bb41de6bc1ffa93badd932b891f5f1d (diff)
downloadastra-a86c7735d1dd20ec884c256950b8a9575f3ebdca.tar.gz
astra-a86c7735d1dd20ec884c256950b8a9575f3ebdca.tar.bz2
astra-a86c7735d1dd20ec884c256950b8a9575f3ebdca.tar.xz
astra-a86c7735d1dd20ec884c256950b8a9575f3ebdca.zip
Merge pull request #28 from dmpelt/projector3d-python
Add projector3d and CUDA projectors to Python (to match new Matlab code)
Diffstat (limited to 'samples/python/s013_constraints.py')
-rw-r--r--samples/python/s013_constraints.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/python/s013_constraints.py b/samples/python/s013_constraints.py
index 009360e..8b63d5e 100644
--- a/samples/python/s013_constraints.py
+++ b/samples/python/s013_constraints.py
@@ -36,8 +36,8 @@ proj_geom = astra.create_proj_geom('parallel', 1.0, 384, np.linspace(0,np.pi,50,
# As before, create a sinogram from a phantom
import scipy.io
P = scipy.io.loadmat('phantom.mat')['phantom256']
-proj_id = astra.create_projector('line',proj_geom,vol_geom)
-sinogram_id, sinogram = astra.create_sino(P, proj_id,useCUDA=True)
+proj_id = astra.create_projector('cuda',proj_geom,vol_geom)
+sinogram_id, sinogram = astra.create_sino(P, proj_id)
import pylab
pylab.gray()