summaryrefslogtreecommitdiffstats
path: root/cuda/2d/astra.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:22 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:22 +0000
commit0c77eee16e2f4161c1ebc110b15ce6563d4a96c2 (patch)
treed824a763da5578391839c57057d5ecee26554873 /cuda/2d/astra.h
parent8b046691e7cf5ba603b690e5a820869f7aba0bb6 (diff)
downloadastra-0c77eee16e2f4161c1ebc110b15ce6563d4a96c2.tar.gz
astra-0c77eee16e2f4161c1ebc110b15ce6563d4a96c2.tar.bz2
astra-0c77eee16e2f4161c1ebc110b15ce6563d4a96c2.tar.xz
astra-0c77eee16e2f4161c1ebc110b15ce6563d4a96c2.zip
Add fan beam support to FBP_CUDA
Diffstat (limited to 'cuda/2d/astra.h')
-rw-r--r--cuda/2d/astra.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cuda/2d/astra.h b/cuda/2d/astra.h
index 9e58301..42b15e8 100644
--- a/cuda/2d/astra.h
+++ b/cuda/2d/astra.h
@@ -68,6 +68,19 @@ public:
unsigned int iProjDets,
const float *pfAngles,
float fDetSize = 1.0f);
+ // Set the projection angles and number of detector pixels per angle.
+ // pfAngles must be a float array of length iProjAngles.
+ // fDetSize indicates the size of a detector pixel compared to a
+ // volume pixel edge.
+ //
+ // pfAngles will only be read from during this call.
+ bool setFanGeometry(unsigned int iProjAngles,
+ unsigned int iProjDets,
+ const float *pfAngles,
+ float fOriginSourceDistance,
+ float fOriginDetectorDistance,
+ float fDetSize = 1.0f,
+ bool bShortScan = false);
// Set linear supersampling factor for the BP.
// (The number of rays is the square of this)