r645: no message
[ctsim.git] / libctsim / imagefile.cpp
index bab87bdeff5ab0fa4486a66f629089e85efd4d91..9fa905725ec0883b269e3b072d95c1b946a94521 100644 (file)
@@ -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())