projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r98: finished object-orient convern of Scanner & Phantom
[ctsim.git]
/
src
/
ctrec.cpp
diff --git
a/src/ctrec.cpp
b/src/ctrec.cpp
index 0ec840217f0944b6a759c9235a57913c116dea91..42dadc0ca9310632c665eefc34465e26c9ad75b2 100644
(file)
--- a/
src/ctrec.cpp
+++ b/
src/ctrec.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: ctrec.cpp,v 1.1
0 2000/06/17 20:12:15
kevin Exp $
+** $Id: ctrec.cpp,v 1.1
1 2000/06/18 10:27:11
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
@@
-107,7
+107,6
@@
ctrec_main (int argc, char * argv[])
Projections projGlobal;
char *pj_name, *im_filename = NULL;
string remark;
Projections projGlobal;
char *pj_name, *im_filename = NULL;
string remark;
- char filt_name[80];
char *endptr;
int opt_verbose = 0;
int opt_debug = 0;
char *endptr;
int opt_verbose = 0;
int opt_debug = 0;
@@
-204,14
+203,14
@@
ctrec_main (int argc, char * argv[])
nx = strtol(argv[optind + 2], &endptr, 10);
ny = strtol(argv[optind + 3], &endptr, 10);
nx = strtol(argv[optind + 2], &endptr, 10);
ny = strtol(argv[optind + 3], &endptr, 10);
+ ostringstream filt_name;
if (opt_filter == FILTER_G_HAMMING || opt_filter == FILTER_ABS_G_HAMMING)
if (opt_filter == FILTER_G_HAMMING || opt_filter == FILTER_ABS_G_HAMMING)
- snprintf (filt_name, sizeof(filt_name), "%s: alpha = %.2f",
- name_of_filter (opt_filter), opt_filter_param);
+ filt_name << name_of_filter (opt_filter) << ": alpha=" << opt_filter_param;
else
else
-
snprintf (filt_name, sizeof(filt_name), "%s", name_of_filter (opt_filter)
);
+
filt_name << name_of_filter (opt_filter
);
ostringstream label;
ostringstream label;
- label << "Reconstruct: " << nx << "x" << ny << ", " << filt_name << ", " << name_of_interpolation (opt_interp) << ", " << name_of_backproj(opt_backproj);
+ label << "Reconstruct: " << nx << "x" << ny << ", " << filt_name
.str()
<< ", " << name_of_interpolation (opt_interp) << ", " << name_of_backproj(opt_backproj);
remark = label.str();
if (opt_verbose)
remark = label.str();
if (opt_verbose)