** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2if.cpp,v 1.14 2000/06/25 17:32:24 kevin Exp $
+** $Id: phm2if.cpp,v 1.15 2000/06/26 21:15:24 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
}
ostringstream oss;
- oss << "nx=" << opt_nx << ", ny=" << opt_ny << ", nsample=" << opt_nsample << ", ";
+ oss << "phm2if: nx=" << opt_nx << ", ny=" << opt_ny << ", nsample=" << opt_nsample << ", ";
if (opt_phmFileName != "")
oss << "phantom=" << opt_phmFileName;
else if (optPhmName != "")
phm.createFromPhantom (optPhmName.c_str());
if (mpiWorld.getRank() == 0) {
- imGlobal = new ImageFile (opt_outfile, opt_nx, opt_ny);
- imGlobal->fileCreate();
+ imGlobal = new ImageFile (opt_nx, opt_ny);
}
imLocal = new ImageFile (opt_nx, opt_ny);
#else
- imGlobal = new ImageFile (opt_outfile, opt_nx, opt_ny);
- imGlobal->fileCreate ();
+ imGlobal = new ImageFile (opt_nx, opt_ny);
#endif
ImageFileArray v;
if (mpiWorld.getRank() == 0)
#endif
{
- imGlobal->arrayDataWrite ();
double calctime = timerProgram.timerEnd ();
imGlobal->labelAdd (Array2dFileLabel::L_HISTORY, opt_desc.c_str(), calctime);
- imGlobal->fileClose ();
+ imGlobal->fileWrite (opt_outfile);
if (opt_verbose)
cout << "Time to rasterized phantom: " << calctime << " seconds" << endl;