summaryrefslogtreecommitdiffstats
path: root/cuda/3d/fdk.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-04-03 18:25:52 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 14:10:09 +0200
commit64abe91dd26e98001f3f5c7cc73543f5f94cb80d (patch)
tree13090f6c956807dfd70c1c3eb6fb6d67d223517a /cuda/3d/fdk.cu
parent35052afe6c27119b7d1d58a035d17be043d686f2 (diff)
downloadastra-64abe91dd26e98001f3f5c7cc73543f5f94cb80d.tar.gz
astra-64abe91dd26e98001f3f5c7cc73543f5f94cb80d.tar.bz2
astra-64abe91dd26e98001f3f5c7cc73543f5f94cb80d.tar.xz
astra-64abe91dd26e98001f3f5c7cc73543f5f94cb80d.zip
Improve adjoint matching for fan/cone BP functions, and clean up
Diffstat (limited to 'cuda/3d/fdk.cu')
-rw-r--r--cuda/3d/fdk.cu3
1 files changed, 1 insertions, 2 deletions
diff --git a/cuda/3d/fdk.cu b/cuda/3d/fdk.cu
index 1294721..92d3ef6 100644
--- a/cuda/3d/fdk.cu
+++ b/cuda/3d/fdk.cu
@@ -92,10 +92,9 @@ __global__ void devFDK_preweight(void* D_projData, unsigned int projPitch, unsig
// pi / (2 * iProjAngles) : scaling of the integral over angles
// fVoxSize ^ 2 : ...
- const float fW1 = fSrcOrigin * fDetUSize * fDetVSize;
const float fW2 = fCentralRayLength / (fDetUSize * fSrcOrigin);
const float fW3 = fVoxSize * fVoxSize;
- const float fW = fCentralRayLength * fW1 * fW1 * fW2 * fW3 * (M_PI / 2.0f) / (float)dims.iProjAngles;
+ const float fW = fCentralRayLength * fW2 * fW3 * (M_PI / 2.0f) / (float)dims.iProjAngles;
for (int detectorV = startDetectorV; detectorV < endDetectorV; ++detectorV)
{