** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pjrec.cpp,v 1.25 2001/02/23 02:06:02 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: pjrec.cpp,v 1.25 2001/02/23 02:06:02 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
pjrec_usage (const char *program)
std::cout << " trig Trigometric functions at every point" << std::endl;
std::cout << " table Trigometric functions with precalculated table" << std::endl;
std::cout << " diff Difference method" << std::endl;
- std::cout << " diff2 Optimized difference method (default)" << std::endl;
- std::cout << " idiff2 Optimized difference method with integer math" << std::endl;
- std::cout << " idiff3 Highly-optimized difference method with integer math" << std::endl;
+ std::cout << " idiff Difference method with integer math [default]" << std::endl;
std::cout << " --filter-param Alpha level for Hamming filter" << std::endl;
std::cout << " --trace Set tracing to level" << std::endl;
std::cout << " none No tracing (default)" << std::endl;
std::cout << " console Text level tracing" << std::endl;
- std::cout << " phantom Trace phantom" << std::endl;
- std::cout << " proj Trace allrays" << std::endl;
- std::cout << " plot Trace plotting" << std::endl;
- std::cout << " clipping Trace clipping" << std::endl;
std::cout << " --verbose Turn on verbose mode" << std::endl;
std::cout << " --debug Turn on debug mode" << std::endl;
std::cout << " --version Print version" << std::endl;
imLocal = new ImageFile (nx, ny);
#else
- projGlobal.read (pszFilenameProj);
+
+ if (! projGlobal.read (pszFilenameProj)) {
+ fprintf(stderr, "Unable to read projectfile file %s\n", pszFilenameProj);
+ exit(1);
+ }
+
if (bOptVerbose) {
std::ostringstream os;
projGlobal.printScanInfo(os);