diff options
author | Willem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:22 +0000 |
---|---|---|
committer | wpalenst <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:22 +0000 |
commit | 0c77eee16e2f4161c1ebc110b15ce6563d4a96c2 (patch) | |
tree | d824a763da5578391839c57057d5ecee26554873 /cuda/2d/astra.h | |
parent | 8b046691e7cf5ba603b690e5a820869f7aba0bb6 (diff) | |
download | astra-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.h | 13 |
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) |