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