X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fimagefile.cpp;h=1b1660dc0375653a4665d990612a11fc89e76140;hp=3a1483dffd89a6a6b7a6e3f98c548fd9da3ab913;hb=e4c1f7f8eb87558c3abf3bf1d20732361f425351;hpb=ebe18bbc459204f8bf89880459804cc643a32f24 diff --git a/libctsim/imagefile.cpp b/libctsim/imagefile.cpp index 3a1483d..1b1660d 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.8 2000/07/13 07:03:21 kevin Exp $ +** $Id: imagefile.cpp,v 1.9 2000/07/15 08:36:13 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 @@ -59,7 +59,6 @@ ImageFile::display (void) const int ImageFile::displayScaling (const int scale, const ImageFileValue pmin, const ImageFileValue pmax) const { - int grayscale[256]; int nx = m_nx; int ny = m_ny; ImageFileArrayConst v = getArray(); @@ -71,7 +70,7 @@ ImageFile::displayScaling (const int scale, const ImageFileValue pmin, const Ima double view_scale = 255 / (pmax - pmin); int id_X11 = g2_open_X11 (nx * scale, ny * scale); - + int grayscale[256]; for (int i = 0; i < 256; i++) { double cval = i / 255.; grayscale[i] = g2_ink (id_X11, cval, cval, cval);