projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r166: *** empty log message ***
[ctsim.git]
/
libctsim
/
imagefile.cpp
diff --git
a/libctsim/imagefile.cpp
b/libctsim/imagefile.cpp
index 3a1483dffd89a6a6b7a6e3f98c548fd9da3ab913..1b1660dc0375653a4665d990612a11fc89e76140 100644
(file)
--- 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
**
** 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
**
** 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
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();
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);
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);
for (int i = 0; i < 256; i++) {
double cval = i / 255.;
grayscale[i] = g2_ink (id_X11, cval, cval, cval);