X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=bec5c0af5fdad93201d403bedfb5cf66dadac009;hb=52f2fdc3424cd6b5b77ad1497243e1e06739ffe6;hp=7c092f5990af43a9e267092a1f4a92042083ecc8;hpb=7cb74b55a21d0ab57a584ce3c910c280beb7a329;p=ctsim.git diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index 7c092f5..bec5c0a 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -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(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(pData + lDataPos+12); #ifndef WORDS_BIGENDIAN