summaryrefslogtreecommitdiffstats
path: root/python/astra/PyIncludes.pxd
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-05 15:19:43 +0100
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-05 15:49:11 +0100
commit495512324b84a75782f9fbc11921668ad9c170a9 (patch)
tree25de3e37f6e2ee161367bd31fa6e8fcaba03403e /python/astra/PyIncludes.pxd
parent20f329a7a38cd02586ef305d551d288ebcf39501 (diff)
downloadastra-495512324b84a75782f9fbc11921668ad9c170a9.tar.gz
astra-495512324b84a75782f9fbc11921668ad9c170a9.tar.bz2
astra-495512324b84a75782f9fbc11921668ad9c170a9.tar.xz
astra-495512324b84a75782f9fbc11921668ad9c170a9.zip
Added Python support for CUDA projectors
Diffstat (limited to 'python/astra/PyIncludes.pxd')
-rw-r--r--python/astra/PyIncludes.pxd16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/astra/PyIncludes.pxd b/python/astra/PyIncludes.pxd
index 434546a..7df02c5 100644
--- a/python/astra/PyIncludes.pxd
+++ b/python/astra/PyIncludes.pxd
@@ -27,6 +27,8 @@ from libcpp cimport bool
from libcpp.string cimport string
from .PyXMLDocument cimport XMLNode
+include "config.pxi"
+
cdef extern from "astra/Globals.h" namespace "astra":
ctypedef float float32
ctypedef double float64
@@ -150,6 +152,20 @@ cdef extern from "astra/Projector2D.h" namespace "astra":
CVolumeGeometry2D* getVolumeGeometry()
CSparseMatrix* getMatrix()
+cdef extern from "astra/Projector3D.h" namespace "astra":
+ cdef cppclass CProjector3D:
+ bool isInitialized()
+ CProjectionGeometry3D* getProjectionGeometry()
+ CVolumeGeometry3D* getVolumeGeometry()
+
+IF HAVE_CUDA==True:
+ cdef extern from "astra/CudaProjector3D.h" namespace "astra":
+ cdef cppclass CCudaProjector3D
+
+ cdef extern from "astra/CudaProjector2D.h" namespace "astra":
+ cdef cppclass CCudaProjector2D
+
+
cdef extern from "astra/SparseMatrix.h" namespace "astra":
cdef cppclass CSparseMatrix:
CSparseMatrix(unsigned int,unsigned int,unsigned long)