X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=df7ccd2b03b380372eea0124e471aa8711066cd0;hp=813d7bc59f22fdc0973589eaffe354a655c270fa;hb=1e88cf0f7fa4f690ea9f110e8ed3f2b5338d0a10;hpb=e36dfad3f0818b4c3457fbe7277faa6f4ca28dfe diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index 813d7bc..df7ccd2 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -8,7 +8,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: projections.cpp,v 1.20 2000/08/19 22:59:06 kevin Exp $ +** $Id: projections.cpp,v 1.22 2000/08/25 15:59:13 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 @@ -81,8 +81,7 @@ Projections::initFromScanner (const Scanner& scanner) m_rotInc = scanner.rotInc(); m_detInc = scanner.detInc(); m_rotStart = 0; - m_detStart = -scanner.radius() + (scanner.detInc() / 2); - m_phmLen = scanner.phmLen(); + m_detStart = -(scanner.detLen() / 2) + (scanner.detInc() / 2); } void @@ -503,8 +502,7 @@ Projections::reconstruct (ImageFile& im, const char* const filterName, double fi #endif double filterBW = 1. / detInc; - ProcessSignal processSignal (filterName, filterMethodName, filterBW, m_detInc, m_nDet, filt_param, "spatial", filterGenerationName, zeropad, interpFactor); - processSignal.setTraceLevel(trace); + ProcessSignal processSignal (filterName, filterMethodName, filterBW, m_detInc, m_nDet, filt_param, "spatial", filterGenerationName, zeropad, interpFactor, trace); if (processSignal.fail()) { sys_error (ERR_SEVERE, "%s [Projections::reconstruct]", processSignal.failMessage().c_str()); @@ -557,8 +555,6 @@ Projections::reconstruct (ImageFile& im, const char* const filterName, double fi processSignal.filterSignal (detval, filteredProj); - - #ifdef HAVE_BSPLINE_INTERP if (interp_type == I_BSPLINE) bspline (m_nDet, zoom_factor, spline_order, filteredProj, filteredProj);