X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fpjrec.cpp;h=974d62e88b8408225c8859fe62588ce4459ca2fd;hb=36b1cf96dd076a5ff15ae4e037d2f3499d13f380;hp=542f7f22131286e0f58c74ca5c9317406faaea65;hpb=17f20398d8bb0e4b97b5884b999bbe8d58c5254f;p=ctsim.git diff --git a/tools/pjrec.cpp b/tools/pjrec.cpp index 542f7f2..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.24 2001/02/16 00:28:42 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.24 2001/02/16 00:28:42 kevin Exp $"; +static const char* g_szIdStr = "$Id$"; void pjrec_usage (const char *program) @@ -100,17 +100,11 @@ 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; @@ -314,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); @@ -333,7 +332,7 @@ pjrec_main (int argc, char * const argv[]) return (1); } reconstruct.reconstructAllViews(); - + if (bOptVerbose) timerReconstruct.timerEndAndReport ("Time to reconstruct");