X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=libctsim%2Fbackprojectors.cpp;h=7a1c55bccf080b304695190e9d5b7df096512c85;hb=c4af77faf7f216b936f0782e918634d34980c63f;hp=4983256ffd0e57846690d9bf7bb5ef9c8a1f544a;hpb=73d188fc0cf01163d61ecb0662b8a16a44b57eab;p=ctsim.git diff --git a/libctsim/backprojectors.cpp b/libctsim/backprojectors.cpp index 4983256..7a1c55b 100644 --- a/libctsim/backprojectors.cpp +++ b/libctsim/backprojectors.cpp @@ -8,7 +8,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: backprojectors.cpp,v 1.10 2000/07/22 15:45:33 kevin Exp $ +** $Id: backprojectors.cpp,v 1.11 2000/07/23 01:49:03 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -440,7 +440,7 @@ BackprojectDiff::BackprojectView (const double* const filteredProj, const double for (int iy = 0; iy < ny; iy++, curDetPos += det_dy) { #ifdef DEBUG - printf ("[%2d,%2d]: %8.5lf ", ix, iy, curDetPos); + printf ("[%2d,%2d]: %8.5f ", ix, iy, curDetPos); #endif if (interpType == Backprojector::INTERP_NEAREST) { int iDetPos = iDetCenter + nearest(curDetPos / detInc); // calc index in the filtered raysum vector @@ -491,7 +491,7 @@ BackprojectDiff2::BackprojectView (const double* const filteredProj, const doubl for (int iy = 0; iy < ny; iy++, curDetPos += det_dy) { #ifdef DEBUG - printf ("[%2d,%2d]: %8.5f %8.5f\n", ix, iy, curDetPos, filteredProj[iDetCenter + nearest(L))]); + printf ("[%2d,%2d]: %8.5f %8.5f\n", ix, iy, curDetPos, filteredProj[iDetCenter + nearest(curDetPos)]); #endif if (interpType == Backprojector::INTERP_NEAREST) { int iDetPos = iDetCenter + nearest (curDetPos); // calc index in the filtered raysum vector