Interim work on creating projections from an imagefile
[ctsim.git] / tools / phm2helix.cpp
index 6ef902e9d546d70b278e3e0a97a4b59e9f803d53..5ead089814673a9678415ae5f1ca5648411925a2 100644 (file)
@@ -78,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     Initial 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";
@@ -281,7 +281,7 @@ phm2helix_main (int argc, char* const argv[])
           if (stat != 0 )
                         std::cerr << "Error executing external phantom program " << opt_PhmProg << " with command " << extcommand << std::endl;
 
-          phm.createFromFile (opt_PhmFileName.c_str());
+          phm.createFromPhmFile (opt_PhmFileName.c_str());
           remove(opt_PhmFileName.c_str());
 
           Scanner scanner (phm, optGeometryName.c_str(), opt_ndet, opt_nview,
@@ -309,7 +309,7 @@ phm2helix_main (int argc, char* const argv[])
                 if (stat != 0 )
                         std::cerr << "Error executing external phantom program " << opt_PhmProg << " with command " << extcommand << std::endl;
                 Phantom phmtmp;
-                phmtmp.createFromFile (opt_PhmFileName.c_str());
+                phmtmp.createFromPhmFile (opt_PhmFileName.c_str());
 
                 scanner.collectProjections (pjGlobal, phmtmp, iView,
                           1, scanner.offsetView(), true, opt_trace);