** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.57 2001/03/11 06:34:37 kevin Exp $
+** $Id: projections.cpp,v 1.58 2001/03/11 12:37:34 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
pProjNew->m_label.setDateTime (pProjNew->m_year, pProjNew->m_month, pProjNew->m_day, pProjNew->m_hour, pProjNew->m_minute, pProjNew->m_second);
pProjNew->m_rotStart = 0;
+#ifdef CONVERT_PARALLEL_PI
pProjNew->m_rotInc = PI / nView;;
+#else
+ pProjNew->m_rotInc = TWOPI / nView;
+#endif
pProjNew->m_detStart = -m_dViewDiameter / 2;
pProjNew->m_detInc = m_dViewDiameter / nDet;
if (nDet % 2 == 0) // even
pC->m_dTheta = normalizeAngle (dViewAngle + dDetPos);
pC->m_dT = dFocalLength * sin (dDetPos);
}
+#ifdef CONVERT_PARALLEL_PI
if (pC->m_dTheta >= PI) { // convert T/Theta to 0-PI interval
pC->m_dTheta -= PI;
- pC->m_dT = -pC->m_dT - pProjections->detInc();
+ pC->m_dT = -pC->m_dT;
}
+#endif
pC->m_dRaysum = detValues[iD];
dDetPos += dDetInc;
}