X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fimagefile.cpp;h=851b4fdb6d953efb848259debe3e987cac3c7e84;hp=803347f2e76f071c8fd1ae6b110ac04a84b61994;hb=9703ace3c451ce079967284bf191783736dbc77f;hpb=7c3c1727423ad6c0f56ac45ac33f250b4029dc88 diff --git a/libctsim/imagefile.cpp b/libctsim/imagefile.cpp index 803347f..851b4fd 100644 --- a/libctsim/imagefile.cpp +++ b/libctsim/imagefile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: imagefile.cpp,v 1.17 2000/12/06 01:46:43 kevin Exp $ +** $Id: imagefile.cpp,v 1.18 2000/12/16 02:31:00 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 @@ -256,7 +256,7 @@ ImageFile::statistics (double& min, double& max, double& mean, double& mode, dou for (int iy = 0; iy < ny; iy++) { int b = static_cast((((v[ix4][iy] - min) / spread) * (nbin - 1)) + 0.5); hist[b]++; - double diff = (v[ix][iy] - mean); + double diff = (v[ix4][iy] - mean); stddev += diff * diff; } }