r591: Added Center-Detector length to scanning and reconstruction
[ctsim.git] / libctsim / reconstruct.cpp
index 7bc6a833c6b39b873c3711315f25bcf93ccf6411..0c5cf0eb925c4e2a2a25028d637766856d422d2e 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: reconstruct.cpp,v 1.13 2001/02/20 04:48:45 kevin Exp $
+**  $Id: reconstruct.cpp,v 1.15 2001/03/01 07:30: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
@@ -71,7 +71,7 @@ Reconstructor::Reconstructor (const Projections& rProj, ImageFile& rIF, const ch
   double filterBW = 1. / m_rProj.detInc();
   m_pProcessSignal = new ProcessSignal (filterName, filterMethodName, filterBW, m_rProj.detInc(), 
     m_rProj.nDet(), filt_param, "spatial", filterGenerationName, zeropad, interpFactor, iTrace, 
-    m_rProj.geometry(), m_rProj.focalLength(), pSGP);
+    m_rProj.geometry(), m_rProj.focalLength(), m_rProj.sourceDetectorLength(), pSGP);
 
   if (m_pProcessSignal->fail()) {
     m_bFail = true;
@@ -139,7 +139,13 @@ void
 Reconstructor::reconstructAllViews ()
 {
   reconstructView (0, m_rProj.nView());
-  delete m_pBackprojector; m_pBackprojector = NULL;
+  postProcessing();
+}
+
+void
+Reconstructor::postProcessing()
+{
+  m_pBackprojector->PostProcessing();
 }