summaryrefslogtreecommitdiffstats
path: root/src/CudaBackProjectionAlgorithm3D.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-12-04 16:04:58 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-12-04 16:04:58 +0100
commitb6891106eb167e7399a88efe858abccb8b3dd0c0 (patch)
treea92a3f08ec3a4ed7751ec5ae563f217bd8614731 /src/CudaBackProjectionAlgorithm3D.cpp
parent7ba1ff9ff08daf043cc131434373cde38434f46b (diff)
parente07449189a05e3bcdc8ad4a9fbb95c0751f567bb (diff)
downloadastra-b6891106eb167e7399a88efe858abccb8b3dd0c0.tar.gz
astra-b6891106eb167e7399a88efe858abccb8b3dd0c0.tar.bz2
astra-b6891106eb167e7399a88efe858abccb8b3dd0c0.tar.xz
astra-b6891106eb167e7399a88efe858abccb8b3dd0c0.zip
Merge pull request #101 from wjp/composite
Add CompositeGeometryManager
Diffstat (limited to 'src/CudaBackProjectionAlgorithm3D.cpp')
-rw-r--r--src/CudaBackProjectionAlgorithm3D.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CudaBackProjectionAlgorithm3D.cpp b/src/CudaBackProjectionAlgorithm3D.cpp
index 8cf4c3b..ce8e111 100644
--- a/src/CudaBackProjectionAlgorithm3D.cpp
+++ b/src/CudaBackProjectionAlgorithm3D.cpp
@@ -37,6 +37,7 @@ $Id$
#include "astra/ParallelProjectionGeometry3D.h"
#include "astra/ParallelVecProjectionGeometry3D.h"
#include "astra/ConeVecProjectionGeometry3D.h"
+#include "astra/CompositeGeometryManager.h"
#include "astra/Logging.h"
@@ -203,9 +204,16 @@ void CCudaBackProjectionAlgorithm3D::run(int _iNrIterations)
&volgeom, projgeom,
m_iGPUIndex, m_iVoxelSuperSampling);
} else {
+
+#if 1
+ CCompositeGeometryManager cgm;
+
+ cgm.doBP(m_pProjector, pReconMem, pSinoMem);
+#else
astraCudaBP(pReconMem->getData(), pSinoMem->getDataConst(),
&volgeom, projgeom,
m_iGPUIndex, m_iVoxelSuperSampling);
+#endif
}
}