summaryrefslogtreecommitdiffstats
path: root/cuda
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:14 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:14 +0000
commitbd81a64e91efaf5aabbd70ed42f22f49f8aabe32 (patch)
tree45f1658e0ed759d00e5a011def3dec0f8945e160 /cuda
parent09bc8812ac3695d2c9c4bf3dbbab17e117d6a6c6 (diff)
downloadastra-bd81a64e91efaf5aabbd70ed42f22f49f8aabe32.tar.gz
astra-bd81a64e91efaf5aabbd70ed42f22f49f8aabe32.tar.bz2
astra-bd81a64e91efaf5aabbd70ed42f22f49f8aabe32.tar.xz
astra-bd81a64e91efaf5aabbd70ed42f22f49f8aabe32.zip
Fix SART_CUDA
Diffstat (limited to 'cuda')
-rw-r--r--cuda/2d/sart.cu5
1 files changed, 4 insertions, 1 deletions
diff --git a/cuda/2d/sart.cu b/cuda/2d/sart.cu
index 64d6f28..ed763c9 100644
--- a/cuda/2d/sart.cu
+++ b/cuda/2d/sart.cu
@@ -180,7 +180,10 @@ bool SART::iterate(unsigned int iterations)
}
// copy one line of sinogram to projection data
- duplicateProjectionData(D_projData, D_sinoData, sinoPitch, dims);
+ // NB: Non-standard dimensions
+ SDimensions linedims = dims;
+ linedims.iProjAngles = 1;
+ duplicateProjectionData(D_projData, D_sinoData + angle*sinoPitch, sinoPitch, linedims);
// do FP, subtracting projection from sinogram
if (useVolumeMask) {