X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsim%2Fscanner.cpp;h=ff3cd9af366833c74a3e7e3e52641aeeaaa43a2b;hb=b361677a2f7d5b443641faec70b057f2a84dc77e;hp=2314595219d76c45801d1a8dbf8a57f91de10f05;hpb=c953cbb6ffc2fd50e736230f4e6976a025983cff;p=ctsim.git diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 2314595..ff3cd9a 100644 --- a/libctsim/scanner.cpp +++ b/libctsim/scanner.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: scanner.cpp,v 1.33 2001/03/01 07:30:49 kevin Exp $ +** $Id: scanner.cpp,v 1.34 2001/03/10 23:14:16 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 @@ -188,8 +188,10 @@ Scanner::Scanner (const Phantom& phm, const char* const geometryName, m_detInc = m_detLen / (m_nDet - 1); // center detector = (nDet/2) dDetectorArrayEndOffset = m_detInc; } + // adjust for center-detector length double dA1 = acos ((m_dScanDiameter / 2) / m_dCenterDetectorLength); double dAngularScale = 2 * (HALFPI + dAngle - dA1) / m_detLen; + m_dAngularDetLen = dAngularScale * (m_detLen + dDetectorArrayEndOffset); m_dAngularDetIncrement = dAngularScale * m_detInc; m_initPos.dAngularDet = -m_dAngularDetLen / 2;