X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fscanner.cpp;fp=libctsim%2Fscanner.cpp;h=0319912339cbee2c8755852cc0bcdbbca561aee5;hp=88f99f00a87eaad8b19fafbaeccfc9c9b76e7d97;hb=ac39e654e1385006647c73b253d4d79ccf09a919;hpb=549260c8718f0635497a3c68062c7c147dd26aab diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 88f99f0..0319912 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.37 2001/03/18 18:08:25 kevin Exp $ +** $Id: scanner.cpp,v 1.38 2001/04/02 03:49:52 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 @@ -469,10 +469,8 @@ Scanner::projectSingleView (const Phantom& phm, DetectorArray& detArray, const d if (phm.getComposition() == P_UNIT_PULSE) { // put unit pulse in center of view for (int d = 0; d < detArray.nDet(); d++) - if (detArray.nDet() / 2 == d && isOdd (d)) - detval[d] = 1; - else detval[d] = 0; + detval[ detArray.nDet() / 2 ] = 1; } else { for (int d = 0; d < detArray.nDet(); d++) { double xs = xs_maj;