X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fimagefile.cpp;h=9fa905725ec0883b269e3b072d95c1b946a94521;hp=bab87bdeff5ab0fa4486a66f629089e85efd4d91;hb=f90a2885fb7fa51e5c66a9a8b01f1fc6e1801b3c;hpb=99e0682c24409926fb1afd867db88a4803c734e7 diff --git a/libctsim/imagefile.cpp b/libctsim/imagefile.cpp index bab87bd..9fa9057 100644 --- a/libctsim/imagefile.cpp +++ b/libctsim/imagefile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: imagefile.cpp,v 1.42 2001/03/21 21:45:31 kevin Exp $ +** $Id: imagefile.cpp,v 1.43 2001/03/28 16:53:43 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 @@ -1185,7 +1185,7 @@ ImageFile::magnitude (ImageFile& result) const if (isComplex()) vRealResult[ix][iy] = ::sqrt (vReal[ix][iy] * vReal[ix][iy] + vImag[ix][iy] * vImag[ix][iy]); else - vRealResult[ix][iy] = vReal[ix][iy]; + vRealResult[ix][iy] = ::fabs(vReal[ix][iy]); } if (result.isComplex())