summaryrefslogtreecommitdiffstats
path: root/cuda/2d/sart.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:17 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:17 +0000
commit7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94 (patch)
tree42bd24bf740b3fb1332df0a6472060fd8c5606f7 /cuda/2d/sart.cu
parentbd81a64e91efaf5aabbd70ed42f22f49f8aabe32 (diff)
downloadastra-7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94.tar.gz
astra-7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94.tar.bz2
astra-7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94.tar.xz
astra-7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94.zip
Fix SART::computeDiffNorm
Diffstat (limited to 'cuda/2d/sart.cu')
-rw-r--r--cuda/2d/sart.cu5
1 files changed, 2 insertions, 3 deletions
diff --git a/cuda/2d/sart.cu b/cuda/2d/sart.cu
index ed763c9..28a18d8 100644
--- a/cuda/2d/sart.cu
+++ b/cuda/2d/sart.cu
@@ -223,7 +223,6 @@ float SART::computeDiffNorm()
unsigned int pPitch;
float *D_p;
allocateProjectionData(D_p, pPitch, dims);
- zeroProjectionData(D_p, pPitch, dims);
// copy sinogram to D_p
duplicateProjectionData(D_p, D_sinoData, sinoPitch, dims);
@@ -232,9 +231,9 @@ float SART::computeDiffNorm()
if (useVolumeMask) {
duplicateVolumeData(D_tmpData, D_volumeData, volumePitch, dims);
processVol<opMul>(D_tmpData, D_maskData, tmpPitch, dims);
- callFP(D_tmpData, tmpPitch, D_projData, projPitch, -1.0f);
+ callFP(D_tmpData, tmpPitch, D_p, pPitch, -1.0f);
} else {
- callFP(D_volumeData, volumePitch, D_projData, projPitch, -1.0f);
+ callFP(D_volumeData, volumePitch, D_p, pPitch, -1.0f);
}