** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2pj.cpp,v 1.26 2001/02/16 00:28:41 kevin Exp $
+** $Id: phm2pj.cpp,v 1.27 2001/02/19 20:23:17 kevin Exp $
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: phm2pj.cpp,v 1.26 2001/02/16 00:28:41 kevin Exp $";
+static const char* g_szIdStr = "$Id: phm2pj.cpp,v 1.27 2001/02/19 20:23:17 kevin Exp $";
void
std::cout << " --phmfile Get Phantom from phantom file\n";
std::cout << " --desc Description of raysum\n";
std::cout << " --nray Number of rays per detector (default = 1)\n";
- std::cout << " --rotangle Degrees to rotate view through (multiple of PI)\n";
+ std::cout << " --rotangle Angle to rotate view through (fraction of a circle)\n";
std::cout << " (default = select appropriate for geometry)\n";
std::cout << " --geometry Geometry of scanning\n";
std::cout << " parallel Parallel scan beams (default)\n";
if (opt_rotangle < 0) {
if (optGeometryName.compare ("parallel") == 0)
- opt_rotangle = 1;
+ opt_rotangle = 0.5;
else
- opt_rotangle = 2;
+ opt_rotangle = 1.0;
}
std::ostringstream desc;
phm.createFromPhantom (optPhmName.c_str());
#endif
- opt_rotangle *= PI;
+ opt_rotangle *= TWOPI;
Scanner scanner (phm, optGeometryName.c_str(), opt_ndet, opt_nview, opt_nray, opt_rotangle, dOptFocalLength, dOptViewRatio, dOptScanRatio);
if (scanner.fail()) {
std::cout << "Scanner Creation Error: " << scanner.failMessage() << std::endl;