diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-03-10 15:11:15 +0100 |
---|---|---|
committer | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-03-10 15:11:15 +0100 |
commit | 150951875c236f95a64fd132c26576bd19daca80 (patch) | |
tree | ecafe5eed21bc15e577be9cb16702d1e03d31162 /src/CudaForwardProjectionAlgorithm3D.cpp | |
parent | 535564ccd8b9563fb52be0dff247b99495942f51 (diff) | |
download | astra-150951875c236f95a64fd132c26576bd19daca80.tar.gz astra-150951875c236f95a64fd132c26576bd19daca80.tar.bz2 astra-150951875c236f95a64fd132c26576bd19daca80.tar.xz astra-150951875c236f95a64fd132c26576bd19daca80.zip |
Use new logging API internally instead of printf / iostream
Diffstat (limited to 'src/CudaForwardProjectionAlgorithm3D.cpp')
-rw-r--r-- | src/CudaForwardProjectionAlgorithm3D.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CudaForwardProjectionAlgorithm3D.cpp b/src/CudaForwardProjectionAlgorithm3D.cpp index bb122e0..57e1094 100644 --- a/src/CudaForwardProjectionAlgorithm3D.cpp +++ b/src/CudaForwardProjectionAlgorithm3D.cpp @@ -40,6 +40,8 @@ $Id$ #include "astra/ParallelVecProjectionGeometry3D.h" #include "astra/ConeVecProjectionGeometry3D.h" +#include "astra/Logging.h" + #include "../cuda/3d/astra3d.h" using namespace std; @@ -265,7 +267,7 @@ void CCudaForwardProjectionAlgorithm3D::run(int) for (int k = 0; k < 2; ++k) { float fU, fV; projgeom->projectPoint(fX[i], fY[j], fZ[k], a, fU, fV); - fprintf(stderr, "%3d %c1,%c1,%c1 -> %12f %12f\n", a, i ? ' ' : '-', j ? ' ' : '-', k ? ' ' : '-', fU, fV); + astra::CLogger::debug(__FILE__,__LINE__,"%3d %c1,%c1,%c1 -> %12f %12f", a, i ? ' ' : '-', j ? ' ' : '-', k ? ' ' : '-', fU, fV); } } #endif |