X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fphm2helix.cpp;h=93a8390f56bc86614e5170d01626280f74f29ffa;hp=1af94b3d313f451f6996b2c4a5d1ad30ad83e2ae;hb=4b49778f44b9149451ba36e5f1bd7830c74c8fee;hpb=1a050c98763fbbc0662731b0b76953acede6f5d7 diff --git a/tools/phm2helix.cpp b/tools/phm2helix.cpp index 1af94b3..93a8390 100644 --- a/tools/phm2helix.cpp +++ b/tools/phm2helix.cpp @@ -3,13 +3,11 @@ ** ** Name: phm2helix.cpp ** Purpose: Take projections of a phantom object -** Programmer: Ian Kay +** Programmers: Ian Kay and Kevin Rosenberg ** Date Started: Aug 2001 ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg -** -** $Id$ +** Copyright (C) 1983-2009 Kevin Rosenberg ** ** 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 @@ -80,7 +78,7 @@ phm2helix_usage (const char *program) std::cout << " (default = 1)\n"; std::cout << " --scan-ratio Length to scan (scan diameter to view diameter)\n"; std::cout << " (default = 1)\n"; - std::cout << " --offsetview Intial gantry offset in 'views' (default = 0)\n"; + std::cout << " --offsetview Initial gantry offset in 'views' (default = 0)\n"; std::cout << " --trace Trace level to use\n"; std::cout << " none No tracing (default)\n"; std::cout << " console Trace text level\n"; @@ -303,7 +301,9 @@ phm2helix_main (int argc, char* const argv[]) std::cout << opt_PhmProg << " " << iView << " " << opt_nview << " " << opt_PhmFileName << std::endl; //extcommand << opt_PhmProg << " " << iView << " " << opt_nview << " " << opt_PhmFileName ; - sprintf(extcommand, "%s %d %d %s", opt_PhmProg.c_str(), iView, opt_nview, opt_PhmFileName.c_str() ); + sprintf(extcommand, "%s %d %d %s", + opt_PhmProg.c_str(), iView, opt_nview, + opt_PhmFileName.c_str() ); stat = system( extcommand ); if (stat != 0 ) @@ -318,18 +318,18 @@ phm2helix_main (int argc, char* const argv[]) pjGlobal.setCalcTime (timerProgram.timerEnd()); - pjGlobal.setRemark (opt_desc); - pjGlobal.write (opt_outfile); - if (opt_verbose) { - phm.print (std::cout); - std::cout << std::endl; - std::ostringstream os; - pjGlobal.printScanInfo (os); - std::cout << os.str() << std::endl; - std::cout << " Remark: " << pjGlobal.remark() << std::endl; - std::cout << "Run time: " << pjGlobal.calcTime() << " seconds\n"; + pjGlobal.setRemark (opt_desc); + pjGlobal.write (opt_outfile); + if (opt_verbose) { + phm.print (std::cout); + std::cout << std::endl; + std::ostringstream os; + pjGlobal.printScanInfo (os); + std::cout << os.str() << std::endl; + std::cout << " Remark: " << pjGlobal.remark() << std::endl; + std::cout << "Run time: " << pjGlobal.calcTime() << " seconds\n"; } - + return (0); }