summaryrefslogtreecommitdiffstats
path: root/include/astra/CudaProjector3D.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-10-07 18:14:39 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-10-09 11:42:43 +0200
commit43a38c117405f99e3a1b498f899de4ba6d01a044 (patch)
tree1d8fe2f08b6a07c1303ca3de7fc6d05d36aad41e /include/astra/CudaProjector3D.h
parent0ebd8dfe60cc0d1f05d65d3840278defce0da091 (diff)
downloadastra-43a38c117405f99e3a1b498f899de4ba6d01a044.tar.gz
astra-43a38c117405f99e3a1b498f899de4ba6d01a044.tar.bz2
astra-43a38c117405f99e3a1b498f899de4ba6d01a044.tar.xz
astra-43a38c117405f99e3a1b498f899de4ba6d01a044.zip
Improve option passing through CudaProjector3D
Not all constructors were reading options from the projector. Also allow passing GPUIndex via CudaProjector3D. Thanks to Nicola Vigano for part of the patch.
Diffstat (limited to 'include/astra/CudaProjector3D.h')
-rw-r--r--include/astra/CudaProjector3D.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/astra/CudaProjector3D.h b/include/astra/CudaProjector3D.h
index 1d570fe..da88d6d 100644
--- a/include/astra/CudaProjector3D.h
+++ b/include/astra/CudaProjector3D.h
@@ -117,12 +117,14 @@ public:
Cuda3DProjectionKernel getProjectionKernel() const { return m_projectionKernel; }
int getVoxelSuperSampling() const { return m_iVoxelSuperSampling; }
int getDetectorSuperSampling() const { return m_iDetectorSuperSampling; }
+ int getGPUIndex() const { return m_iGPUIndex; }
protected:
Cuda3DProjectionKernel m_projectionKernel;
int m_iVoxelSuperSampling;
int m_iDetectorSuperSampling;
+ int m_iGPUIndex;
};