r160: *** empty log message ***
[ctsim.git] / libctsim / backprojectors.cpp
index 4983256ffd0e57846690d9bf7bb5ef9c8a1f544a..7a1c55bccf080b304695190e9d5b7df096512c85 100644 (file)
@@ -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<int>(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<int>(L))]);
+      printf ("[%2d,%2d]: %8.5f %8.5f\n", ix, iy, curDetPos, filteredProj[iDetCenter + nearest<int>(curDetPos)]);
 #endif
       if (interpType == Backprojector::INTERP_NEAREST) {
        int iDetPos = iDetCenter + nearest<int> (curDetPos);    // calc index in the filtered raysum vector