X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=e5c79e7364f67a15a0a1ec5ce4b08f01ed0d2df7;hp=968ee0ec48b1bdb807362ead34d0e187384da5bf;hb=728e9fcbe0b785e56e7dcd2bd305786c647050af;hpb=f90a2885fb7fa51e5c66a9a8b01f1fc6e1801b3c diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index 968ee0e..e5c79e7 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.71 2001/03/28 16:53:43 kevin Exp $ +** $Id: projections.cpp,v 1.72 2001/03/29 21:25:49 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 @@ -764,9 +764,8 @@ Projections::convertFFTPolar (ImageFile& rIF, int iInterpolationID, int iZeropad DetectorValue* detval = getDetectorArray(iView).detValues(); LinearInterpolator projInterp (detval, m_nDet); for (unsigned int iDet = 0; iDet < iInterpDet; iDet++) { -// double dInterpPos = iInterpDet * dInterpScale; double dInterpPos = (m_nDet / 2.) + (iDet - dMidPoint) * dInterpScale; - pcIn[iDet].re = projInterp.interpolate (dInterpPos) * PI * SQRT2; + pcIn[iDet].re = projInterp.interpolate (dInterpPos) * dInterpScale; pcIn[iDet].im = 0; } Fourier::shuffleFourierToNaturalOrder (pcIn, iInterpDet);