summaryrefslogtreecommitdiffstats
path: root/cuda/2d/dims.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2014-10-02 13:42:42 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-01-19 11:15:53 +0100
commit9715fadb1511277add807fc033c32d417fa6ffe0 (patch)
tree3dd319aa96573b3ff6ec66f9077888199ddf8f41 /cuda/2d/dims.h
parent2a39390355f55956d6ec1ce204726f979f74b340 (diff)
downloadastra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.gz
astra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.bz2
astra-9715fadb1511277add807fc033c32d417fa6ffe0.tar.xz
astra-9715fadb1511277add807fc033c32d417fa6ffe0.zip
Improve cuda 2d header comments
Diffstat (limited to 'cuda/2d/dims.h')
-rw-r--r--cuda/2d/dims.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/cuda/2d/dims.h b/cuda/2d/dims.h
index 9678050..961f38c 100644
--- a/cuda/2d/dims.h
+++ b/cuda/2d/dims.h
@@ -44,12 +44,29 @@ struct SFanProjection {
struct SDimensions {
+ // Width, height of reconstruction volume
unsigned int iVolWidth;
unsigned int iVolHeight;
+
+ // Number of projection angles
unsigned int iProjAngles;
+
+ // Number of detector pixels
unsigned int iProjDets;
- float fDetScale; // size of detector compared to volume pixels
+
+ // size of detector compared to volume pixels
+ float fDetScale;
+
+ // in FP, number of rays to trace per detector pixel.
+ // This should usually be set to 1.
+ // If fDetScale > 1, this should be set to an integer of roughly
+ // the same size as fDetScale.
unsigned int iRaysPerDet;
+
+ // in BP, square root of number of rays to trace per volume pixel
+ // This should usually be set to 1.
+ // If fDetScale < 1, this should be set to an integer of roughly
+ // the same size as 1 / fDetScale.
unsigned int iRaysPerPixelDim;
};