r595: no message
[ctsim.git] / libctsim / projections.cpp
index 7c092f5990af43a9e267092a1f4a92042083ecc8..bec5c0af5fdad93201d403bedfb5cf66dadac009 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.52 2001/03/02 05:10:22 kevin Exp $
+**  $Id: projections.cpp,v 1.53 2001/03/02 20:07:10 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
@@ -892,7 +892,7 @@ Projections::initFromSomatomAR_STAR (int iNViews, int iNDets, unsigned char* pDa
   m_detInc = convertDegreesToRadians (3.06976 / 60);
   m_detStart = -m_dFanBeamAngle / 2;
   m_rotInc = TWOPI / static_cast<double>(iNViews);
-  m_rotStart = 0;
+  m_rotStart = HALFPI;
   m_dViewDiameter = sin (m_dFanBeamAngle / 2) * m_dFocalLength * 2;
 
   if (iNDets != 1024)
@@ -925,7 +925,7 @@ Projections::initFromSomatomAR_STAR (int iNViews, int iNDets, unsigned char* pDa
 #ifndef WORDS_BIGENDIAN
     SwapBytes4 (pFloat);
 #endif
-    double dAlpha = *pFloat;
+    double dAlpha = *pFloat + HALFPI;
 
     pFloat = reinterpret_cast<float*>(pData + lDataPos+12);
 #ifndef WORDS_BIGENDIAN