r2169: *** empty log message ***
[ctsim.git] / libctsim / projections.cpp
index 9533d7f9da2824d5c2f94ea3c9f2abb07590c488..612ab6bf9161663dd42d6894e3bb1cfc371fc5de 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.79 2002/06/27 01:48:26 kevin Exp $
+**  $Id: projections.cpp,v 1.80 2002/06/27 03:19:23 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
@@ -975,7 +975,7 @@ Projections::convertPolar (ImageFile& rIF, int iInterpolationID)
   for (iView = 0; iView < pProj->m_nView; iView++) {
     ppcDetValue[iView] = new std::complex<double> [pProj->m_nDet];
     DetectorValue* detval = pProj->getDetectorArray (iView).detValues();
-    for (unsigned int iDet = 0; iDet < pProj->m_nDet; iDet++)
+    for (int iDet = 0; iDet < pProj->m_nDet; iDet++)
       ppcDetValue[iView][iDet] = std::complex<double>(detval[iDet], 0);
   }
 
@@ -1140,7 +1140,7 @@ Projections::interpolatePolar (ImageFileArray& v, ImageFileArray& vImag,
 {
   typedef std::complex<double> complexValue;
 
-  BilinearInterpolator<complexValue>* pBilinear;  
+  BilinearInterpolator<complexValue>* pBilinear =  NULL;  
   if (iInterpolationID == POLAR_INTERP_BILINEAR)
     pBilinear = new BilinearInterpolator<complexValue> (ppcDetValue, nView, nDetWithZeros);
 
@@ -1338,8 +1338,8 @@ Projections::interpolateToParallel () const
 ///////////////////////////////////////////////////////////////////////////////
 
 ParallelRaysums::ParallelRaysums (const Projections* pProjections, int iThetaRange)
-: m_iNumCoordinates(0), m_iNumView(pProjections->nView()), m_iNumDet(pProjections->nDet()),
-  m_iThetaRange (iThetaRange), m_pCoordinates(NULL)
+: m_pCoordinates(NULL), m_iNumCoordinates(0), m_iNumView(pProjections->nView()), m_iNumDet(pProjections->nDet()),
+  m_iThetaRange (iThetaRange)
 {
   int iGeometry = pProjections->geometry();
   double dDetInc = pProjections->detInc();