X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fpj2if.cpp;h=8723429cf541e18b959094799b60eabacebbf2c9;hb=949b7c917af311cd38f911bc5d0af36f524a6086;hp=26c537620002eb36e81a9bc14148e1c60ccaeae5;hpb=207332eec9416d299766abb697312cfd27eb890e;p=ctsim.git diff --git a/src/pj2if.cpp b/src/pj2if.cpp index 26c5376..8723429 100644 --- a/src/pj2if.cpp +++ b/src/pj2if.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: pj2if.cpp,v 1.3 2000/06/19 17:58:13 kevin Exp $ +** $Id: pj2if.cpp,v 1.5 2000/06/27 10:48:11 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 @@ -112,7 +112,7 @@ pj2if_main (const int argc, char *const argv[]) if (opt_verbose) pj.printScanInfo(); - ImageFile im (im_name, pj.nDet(), pj.nView()); + ImageFile im (pj.nDet(), pj.nView()); ImageFileArray v = im.getArray(); @@ -126,11 +126,9 @@ pj2if_main (const int argc, char *const argv[]) } } - im.fileCreate (); - im.arrayDataWrite (); - im.labelAdd (Array2dFileLabel::L_HISTORY, pj.remark(), pj.calcTime()); + im.labelAdd (pj.getLabel()); im.labelAdd (Array2dFileLabel::L_HISTORY, "Conversion from .pj to .if"); - im.fileClose (); + im.fileWrite (im_name); return(0); }