X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fscanner.cpp;h=cf6c78cf8a8a55e99f3985e1ef9b3381ca39c2b0;hp=48f23943a739ec654d361fba8fdcc35f1fad92d5;hb=6afa21de8aa00b405de47584efe108c71df33e1b;hpb=9703ace3c451ce079967284bf191783736dbc77f diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 48f2394..cf6c78c 100644 --- a/libctsim/scanner.cpp +++ b/libctsim/scanner.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: scanner.cpp,v 1.18 2000/12/16 02:31:00 kevin Exp $ +** $Id: scanner.cpp,v 1.19 2000/12/16 02:44:26 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 @@ -303,7 +303,7 @@ Scanner::collectProjections (Projections& proj, const Phantom& phm, const int iS if (pSGP && m_trace >= Trace::TRACE_PHANTOM) { m_pSGP = pSGP; m_pSGP->eraseWindow(); - double dWindowSize = max(m_detLen, m_dFocalLength * 2) * SQRT2; + double dWindowSize = dmax (m_detLen, m_dFocalLength * 2) * SQRT2; double dHalfWindowSize = dWindowSize / 2; m_dXMinWin = m_dXCenter - dHalfWindowSize; m_dXMaxWin = m_dXCenter + dHalfWindowSize;