From 7a0a5ba0df0d69d1bf9e93bbfa4cf76fe4519e94 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 22 Apr 2014 14:16:17 +0000 Subject: Fix SART::computeDiffNorm --- cuda/2d/sart.cu | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cuda/2d/sart.cu') 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(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); } -- cgit v1.2.3