X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fpjrec.cpp;h=974d62e88b8408225c8859fe62588ce4459ca2fd;hb=36b1cf96dd076a5ff15ae4e037d2f3499d13f380;hp=ea230489c36429778cb9f133499624885a7d49d8;hpb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;p=ctsim.git 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);