X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fpjrec.cpp;h=974d62e88b8408225c8859fe62588ce4459ca2fd;hp=ea230489c36429778cb9f133499624885a7d49d8;hb=8427cefe77dc3d3bcca196360997d400d7629e24;hpb=e46615378520c3e801074560ebdc36be9558c6dd diff --git a/tools/pjrec.cpp b/tools/pjrec.cpp index ea23048..974d62e 100644 --- a/tools/pjrec.cpp +++ b/tools/pjrec.cpp @@ -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);