diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2015-03-18 16:55:00 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2015-03-18 16:55:00 +0100 |
commit | a86c7735d1dd20ec884c256950b8a9575f3ebdca (patch) | |
tree | ab4e4e47ba92618562f84a47de587878f4d34af6 /python/astra/PyIncludes.pxd | |
parent | 65a607967e71d68ec32f34b7cf61fd8d891cc550 (diff) | |
parent | f603045f5bb41de6bc1ffa93badd932b891f5f1d (diff) | |
download | astra-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 'python/astra/PyIncludes.pxd')
-rw-r--r-- | python/astra/PyIncludes.pxd | 16 |
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) |