diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-30 16:59:18 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-12-20 17:25:46 +0100 |
commit | 9fa2ffdc5348f8f19de48d06a72b82bdc1ba8f22 (patch) | |
tree | e4cda472fcd4213395829b3849e3163942c6c16b /cuda/3d/cone_bp.cu | |
parent | 52ebf0670ae39abea04344c32a1dc054c6816a03 (diff) | |
download | astra-9fa2ffdc5348f8f19de48d06a72b82bdc1ba8f22.tar.gz astra-9fa2ffdc5348f8f19de48d06a72b82bdc1ba8f22.tar.bz2 astra-9fa2ffdc5348f8f19de48d06a72b82bdc1ba8f22.tar.xz astra-9fa2ffdc5348f8f19de48d06a72b82bdc1ba8f22.zip |
Start on fixing FDK and BP voxel-size weighting factors
Diffstat (limited to 'cuda/3d/cone_bp.cu')
-rw-r--r-- | cuda/3d/cone_bp.cu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cuda/3d/cone_bp.cu b/cuda/3d/cone_bp.cu index 02242b0..aff0834 100644 --- a/cuda/3d/cone_bp.cu +++ b/cuda/3d/cone_bp.cu @@ -266,7 +266,11 @@ bool ConeBP_Array(cudaPitchedPtr D_volumeData, { bindProjDataTexture(D_projArray); - float fOutputScale = params.fOutputScale * params.fVolScaleX * params.fVolScaleY * params.fVolScaleZ; + float fOutputScale; + if (params.bFDKWeighting) + fOutputScale = params.fOutputScale / (params.fVolScaleX * params.fVolScaleY * params.fVolScaleZ); + 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; |