summaryrefslogtreecommitdiffstats
path: root/cuda/3d/cone_bp.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-04-04 12:09:07 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 14:10:10 +0200
commit9950fc9bf91073c0168c8847a8f6a8814690f97c (patch)
tree9dd1f95460ec7cd622256c9a82edd4296c33787f /cuda/3d/cone_bp.cu
parent5ea1bf556419204511195fa5b2bedbd1318b51ff (diff)
downloadastra-9950fc9bf91073c0168c8847a8f6a8814690f97c.tar.gz
astra-9950fc9bf91073c0168c8847a8f6a8814690f97c.tar.bz2
astra-9950fc9bf91073c0168c8847a8f6a8814690f97c.tar.xz
astra-9950fc9bf91073c0168c8847a8f6a8814690f97c.zip
Small clean up of factors
Diffstat (limited to 'cuda/3d/cone_bp.cu')
-rw-r--r--cuda/3d/cone_bp.cu8
1 files changed, 5 insertions, 3 deletions
diff --git a/cuda/3d/cone_bp.cu b/cuda/3d/cone_bp.cu
index a614c29..fa35442 100644
--- a/cuda/3d/cone_bp.cu
+++ b/cuda/3d/cone_bp.cu
@@ -363,10 +363,12 @@ bool ConeBP_Array(cudaPitchedPtr D_volumeData,
bindProjDataTexture(D_projArray);
float fOutputScale;
- if (params.bFDKWeighting)
- fOutputScale = params.fOutputScale / (params.fVolScaleX * params.fVolScaleY * params.fVolScaleZ);
- else
+ if (params.bFDKWeighting) {
+ // NB: assuming cube voxels here
+ fOutputScale = params.fOutputScale / (params.fVolScaleX);
+ } else {
fOutputScale = params.fOutputScale * (params.fVolScaleX * params.fVolScaleY * params.fVolScaleZ);
+ }
for (unsigned int th = 0; th < dims.iProjAngles; th += g_MaxAngles) {
unsigned int angleCount = g_MaxAngles;