** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if-1.cpp,v 1.8 2000/06/19 17:58:13 kevin Exp $
+** $Id: if-1.cpp,v 1.9 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
if (opt_invert || opt_log || opt_exp || opt_sqr || opt_sqrt) {
int ix, iy;
- im_in = new ImageFile (in_file);
- im_in->fileRead ();
+ im_in = new ImageFile ();
+ im_in->fileRead (in_file);
int nx = im_in->nx();
int ny = im_in->ny();
- im_out = new ImageFile (out_file, nx, ny);
- im_out->fileCreate ();
+ im_out = new ImageFile (nx, ny);
ImageFileArray vIn = im_in->getArray();
ImageFileArray vOut = im_out->getArray();
histString = "Sqrt transformation";
}
- im_out->arrayDataWrite ();
im_out->labelsCopy (*im_in);
im_out->labelAdd (Array2dFileLabel::L_HISTORY, histString.c_str());
- im_out->fileClose ();
+ im_out->fileWrite (out_file);
}
return (0);