summaryrefslogtreecommitdiffstats
path: root/cuda/3d/par3d_bp.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2014-12-03 11:44:20 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2014-12-03 16:13:38 +0100
commit899faabba87628698fbc02a06f4a91ba6469fd8d (patch)
tree25c784cc6f2720d9e00530c239a632e8483a9e9f /cuda/3d/par3d_bp.cu
parentb3e8338a7fa4c7ed9a5954ca02fa3126aefff530 (diff)
downloadastra-899faabba87628698fbc02a06f4a91ba6469fd8d.tar.gz
astra-899faabba87628698fbc02a06f4a91ba6469fd8d.tar.bz2
astra-899faabba87628698fbc02a06f4a91ba6469fd8d.tar.xz
astra-899faabba87628698fbc02a06f4a91ba6469fd8d.zip
Move BP coordinate transformation to utility function
Diffstat (limited to 'cuda/3d/par3d_bp.cu')
-rw-r--r--cuda/3d/par3d_bp.cu3
1 files changed, 3 insertions, 0 deletions
diff --git a/cuda/3d/par3d_bp.cu b/cuda/3d/par3d_bp.cu
index 58b19fe..5f8fb77 100644
--- a/cuda/3d/par3d_bp.cu
+++ b/cuda/3d/par3d_bp.cu
@@ -244,6 +244,9 @@ bool Par3DBP_Array(cudaPitchedPtr D_volumeData,
// NB: We increment angles at the end of the loop body.
+
+ // TODO: Use functions from dims3d.cu for this:
+
#define TRANSFER_TO_CONSTANT(expr,name) do { for (unsigned int i = 0; i < angleCount; ++i) tmp[i] = (expr) ; cudaMemcpyToSymbol(gC_##name, tmp, angleCount*sizeof(float), 0, cudaMemcpyHostToDevice); } while (0)
#define DENOM (angles[i].fRayX*angles[i].fDetUY*angles[i].fDetVZ - angles[i].fRayX*angles[i].fDetUZ*angles[i].fDetVY - angles[i].fRayY*angles[i].fDetUX*angles[i].fDetVZ + angles[i].fRayY*angles[i].fDetUZ*angles[i].fDetVX + angles[i].fRayZ*angles[i].fDetUX*angles[i].fDetVY - angles[i].fRayZ*angles[i].fDetUY*angles[i].fDetVX)