X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fpjrec.cpp;h=974d62e88b8408225c8859fe62588ce4459ca2fd;hb=a2bb680d159717dbd81e3ad179cb28adbf3a3e9a;hp=6766e5b24cdf3708174bc1257839448aa314820d;hpb=4200add84ac2d531eafd1c09a2e58f6252102f5b;p=ctsim.git diff --git a/tools/pjrec.cpp b/tools/pjrec.cpp index 6766e5b..974d62e 100644 --- a/tools/pjrec.cpp +++ b/tools/pjrec.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: pjrec.cpp,v 1.26 2002/05/03 10:28:17 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 @@ -48,7 +48,7 @@ static struct option my_options[] = {0, 0, 0, 0} }; -static const char* g_szIdStr = "$Id: pjrec.cpp,v 1.26 2002/05/03 10:28:17 kevin Exp $"; +static const char* g_szIdStr = "$Id$"; void pjrec_usage (const char *program) @@ -100,9 +100,7 @@ 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; @@ -310,7 +308,12 @@ pjrec_main (int argc, char * const argv[]) 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);