** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if-2.cpp,v 1.6 2000/06/19 17:58:13 kevin Exp $
+** $Id: if-2.cpp,v 1.7 2000/06/25 17:32: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
for (int iy = 0; iy < im_in1.ny(); iy++) {
double diff = *in1++ - *in2++;
*out++ = diff;
- abs_error += fabs(diff);
}
}
- abs_error /= (im_in1.nx() * im_in1.ny());
- cout << "Average Error: " << abs_error << endl;
+ double d, r, e;
+ im_in1.comparativeStatistics (im_in2, d, r, e);
+ cout << "d=" << d << ", r=" << r << ", e=" << e << endl;
}
im_out.arrayDataWrite();