r120: *** empty log message ***
[ctsim.git] / libctsim / projections.cpp
index 5ce0a8e022a3ef788ff2d5e811972a0ec7d41ee4..cd151be0e18013b9936bd0103ecc7822ef832857 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.4 2000/06/22 10:17:28 kevin Exp $
+**  $Id: projections.cpp,v 1.5 2000/06/25 17:32:24 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
@@ -474,8 +474,10 @@ Projections::reconstruct (ImageFile& im, const char* const filterName, double fi
   double filterMax = detlen;
 
   SignalFilter filter (filterName, filterBW, filterMin, filterMax, n_vec_filter, filt_param, "spatial", 0);
-  if (filter.fail())
-    return false;
+  if (filter.fail()) {
+      sys_error (ERR_SEVERE, "%s [Projections::reconstruct]", filter.failMessage().c_str());
+      return false;
+  }
 
   if (trace)
     cout << "Reconstruct: filter="<<filterName<< ", interp="<<interpName<<", backproject="<<backprojectName<<endl;
@@ -502,8 +504,10 @@ Projections::reconstruct (ImageFile& im, const char* const filterName, double fi
 #endif  //HAVE_SGP
 
   Backprojector bj (*this, im, backprojectName, interpName);
-  if (bj.fail())
+  if (bj.fail()) {
+    sys_error (ERR_SEVERE, "%s [Projections::reconstruct]", bj.failMessage().c_str());
     return false;
+  }
 
   for (int iview = 0; iview < m_nView; iview++)  {
     if (trace >= TRACE_TEXT)