#else /* not __STDC__ */
extern int getopt ();
# ifndef __need_getopt
-extern int getopt_long (int argc, char *const *argv, const char *shortopts,\r
- const struct option *longopts, int *longind);\r
-extern int getopt_long_only (int __argc, char *const *__argv,\r
- const char *__shortopts,\r
- const struct option *__longopts, int *__longind);\r
-extern int _getopt_internal (int __argc, char *const *__argv,\r
- const char *__shortopts,\r
- const struct option *__longopts, int *__longind,\r
- int __long_only);\r
+extern int getopt_long (int argc, char *const *argv, const char *shortopts,
+ const struct option *longopts, int *longind);
+extern int getopt_long_only (int __argc, char *const *__argv,
+ const char *__shortopts,
+ const struct option *__longopts, int *__longind);
+extern int _getopt_internal (int __argc, char *const *__argv,
+ const char *__shortopts,
+ const struct option *__longopts, int *__longind,
+ int __long_only);
# endif
#endif /* __STDC__ */
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: array2d.h,v 1.9 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: array2dfile.h,v 1.21 2001/03/07 16:34:47 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: backprojectors.h,v 1.25 2001/03/11 15:27:30 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ct.h,v 1.60 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctglobals.h,v 1.6 2002/05/05 10:54:34 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctndicom.h,v 1.5 2001/03/07 16:34:47 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsupport.h,v 1.26 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
**
** This program is free software; you can redistribute it and/or modify
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ezplot.h,v 1.26 2001/03/10 23:14:15 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: filter.h,v 1.27 2001/02/22 18:22:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: fnetorderstream.h,v 1.11 2002/05/30 06:18:11 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: fourier.h,v 1.7 2001/03/21 21:45:31 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: hashtable.h,v 1.3 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
**
** This program is free software; you can redistribute it and/or modify
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: imagefile.h,v 1.36 2001/09/24 09:40:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: interpolator.h,v 1.9 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: mpiworld.h,v 1.5 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: msvc_compat.h,v 1.4 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: nographics.h,v 1.4 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: phantom.h,v 1.27 2003/03/15 15:03:46 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: plotfile.h,v 1.9 2001/03/10 23:14:15 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: pol.h,v 1.12 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: procsignal.h,v 1.16 2001/03/13 14:53:43 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: projections.h,v 1.36 2001/09/24 09:40:42 kevin Exp $
+** $Id$
**
**
** This program is free software; you can redistribute it and/or modify
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: reconstruct.h,v 1.9 2001/03/13 08:24:41 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: scanner.h,v 1.24 2003/07/04 21:39:39 kevin Exp $
+** $Id$
**
**
** This program is free software; you can redistribute it and/or modify
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: sgp.h,v 1.28 2003/01/22 22:15:10 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: timer.h,v 1.7 2001/02/22 11:05:38 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: trace.h,v 1.8 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: transformmatrix.h,v 1.4 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: bresenham.cpp,v 1.2 2001/03/21 21:45:31 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ezplot.cpp,v 1.34 2002/05/28 18:43:16 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ezset.cpp,v 1.17 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ezsupport.cpp,v 1.6 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: pol.cpp,v 1.10 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: sgp.cpp,v 1.33 2003/01/22 22:15:10 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: transformmatrix.cpp,v 1.5 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: array2dfile.cpp,v 1.30 2003/02/02 03:45:10 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: backprojectors.cpp,v 1.34 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctndicom.cpp,v 1.16 2002/06/27 03:19:23 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2000 Kevin Rosenberg
**
-** $Id: filter.cpp,v 1.40 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: fourier.cpp,v 1.6 2001/03/21 21:45:31 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.48 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: phantom.cpp,v 1.34 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: procsignal.cpp,v 1.33 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.83 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: reconstruct.cpp,v 1.17 2001/03/13 08:24:41 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: scanner.cpp,v 1.44 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: trace.cpp,v 1.4 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: clip.cpp,v 1.9 2001/03/05 20:38:01 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: consoleio.cpp,v 1.4 2001/01/27 21:02:20 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: fnetorderstream.cpp,v 1.5 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: globalvars.cpp,v 1.2 2002/05/05 10:54:34 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: hashtable.cpp,v 1.3 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: interpolator.cpp,v 1.4 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: mathfuncs.cpp,v 1.9 2001/03/21 21:45:31 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: msvc.cpp,v 1.5 2002/06/20 08:22:48 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: plotfile.cpp,v 1.14 2002/05/28 18:43:16 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: strfuncs.cpp,v 1.4 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: syserror.cpp,v 1.25 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: xform.cpp,v 1.6 2001/01/28 19:10:18 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundmgr.cpp,v 1.20 2001/03/18 18:08:26 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundmgr.h,v 1.11 2001/03/09 21:31:51 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundsupr.cpp,v 1.20 2002/10/24 20:09:55 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundsupr.h,v 1.12 2002/10/24 20:09:55 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.121 2003/01/24 05:24:18 kevin Exp $
+** $Id$
**
** 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
#endif
#endif
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.121 2003/01/24 05:24:18 kevin Exp $";
+static const char* rcsindent = "$Id$";
struct option CTSimApp::ctsimOptions[] =
{
case O_VERSION:
std::cout << rcsindent << std::endl;
#ifdef VERSION
- std::cout << "Version: " << VERSION << std::endl;\r
-#elif defined(CTSIMVERSION)\r
+ std::cout << "Version: " << VERSION << std::endl;
+#elif defined(CTSIMVERSION)
std::cout << "Version: " << CTSIMVERSION << std::endl;
#endif
exit(0);
wxString helpDir;
if (! m_pConfig->Read("HelpDir", &helpDir))
- helpDir = ::wxGetCwd();\r
+ helpDir = ::wxGetCwd();
#ifdef CTSIM_WINHELP
if (! m_pFrame->getWinHelpController().Initialize(helpDir + "/ctsim"))
*m_pLog << "Cannot initialize the Windows Help system" << "\n";
-#else\r
+#else
#ifdef DATADIR
- wxString docDir (DATADIR);\r
-#else\r
- wxString docDir (::wxGetCwd());\r
+ wxString docDir (DATADIR);
+#else
+ wxString docDir (::wxGetCwd());
#endif
wxString docFile = docDir + "ctsim.htb";
if (! m_pFrame->getHtmlHelpController().AddBook(docFile) &&
! m_pFrame->getHtmlHelpController().AddBook("/usr/share/ctsim/ctsim.htb") &&
- ! m_pFrame->getHtmlHelpController().AddBook("/tmp/ctsim.htb"))\r
+ ! m_pFrame->getHtmlHelpController().AddBook("/tmp/ctsim.htb"))
*m_pLog << "Cannot initialize the HTML Help system" << "\n";
else {
if (::wxDirExists ("/tmp"))
wxString msg = "CTSim\nThe Open Source Computed Tomography Simulator\n";
#ifdef VERSION
msg << "Version: " << VERSION << "\n\n";
-#elif defined(CTSIMVERSION)\r
- msg << "Version: " << CTSIMVERSION << "\n\n";\r
+#elif defined(CTSIMVERSION)
+ msg << "Version: " << CTSIMVERSION << "\n\n";
#endif
msg += "Author: Kevin Rosenberg <kevin@rosenberg.net>\nUsage: ctsim [files-to-open..] [--help]";
}
}
-\r
-// Create new documents\r
+
+// Create new documents
ProjectionFileDocument*
CTSimApp::newProjectionDoc()
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsim.h,v 1.65 2002/06/20 11:55:44 kevin Exp $
+** $Id$
**
** 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
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
******************************************************************************/
-\r
+
#ifndef __CTSIMH__
#define __CTSIMH__
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dialogs.cpp,v 1.58 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dialogs.h,v 1.39 2003/03/15 10:27:30 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dlgezplot.cpp,v 1.5 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dlgezplot.h,v 1.5 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
- ** $Id: dlgprojections.cpp,v 1.27 2003/01/23 23:35:58 kevin Exp $
+ ** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dlgprojections.h,v 1.8 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dlgreconstruct.cpp,v 1.21 2003/01/24 05:24:19 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dlgreconstruct.h,v 1.9 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: docs.cpp,v 1.46 2003/01/30 21:53:16 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: docs.h,v 1.34 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: graph3dview.cpp,v 1.35 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: graph3dview.h,v 1.12 2003/01/30 21:53:16 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadproj.cpp,v 1.17 2001/09/24 15:16:41 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadproj.h,v 1.7 2001/09/24 09:40:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadraster.cpp,v 1.14 2001/03/09 21:51:28 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadraster.h,v 1.4 2001/03/05 20:29:23 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadrecon.cpp,v 1.25 2001/03/13 08:24:41 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadrecon.h,v 1.14 2001/03/13 08:24:41 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: tips.cpp,v 1.4 2003/07/04 21:39:40 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: tips.h,v 1.2 2001/03/05 20:29:23 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.cpp,v 1.172 2003/03/23 18:37:42 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.h,v 1.61 2003/03/15 10:27:30 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsimtext.cpp,v 1.26 2003/04/01 18:56:59 kevin Exp $
+** $Id$
**
** 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
// If linked to ctsimtext, but executed as another name, eg pjrec, then program will use that
// linked name as name of function.
-static const char* const g_szIdStr = "$Id: ctsimtext.cpp,v 1.26 2003/04/01 18:56:59 kevin Exp $";
+static const char* const g_szIdStr = "$Id$";
static const char* const s_szProgramName = "ctsimtext";
static const char* const s_szProgramName2 = "ctsimtext.exe";
static const char* const s_szProgramName3 = "ctsimtext-lam";
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if1.cpp,v 1.4 2000/12/29 19:30:08 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: if1.cpp,v 1.4 2000/12/29 19:30:08 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
if1_usage (const char *program)
int ny = im_in.ny();
ImageFile im_out (nx, ny);
- if (opt_invert) {\r
+ if (opt_invert) {
im_in.invertPixelValues (im_out);
histString = "Invert transformation";
}
- if (opt_log) {\r
+ if (opt_log) {
im_in.log (im_out);
histString = "Logrithmic transformation";
}
- if (opt_exp) {\r
+ if (opt_exp) {
im_in.exp (im_out);
histString = "Exponential transformation";
}
- if (opt_sqr) {\r
+ if (opt_sqr) {
im_in.square (im_out);
histString = "Square transformation";
}
- if (opt_sqrt) {\r
+ if (opt_sqrt) {
im_in.sqrt (im_out);
histString = "Square root transformation";
}
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if2.cpp,v 1.7 2001/01/09 22:31:47 kevin Exp $
+** $Id$
**
** 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
{"add", 0, 0, O_ADD},
{"sub", 0, 0, O_SUB},
{"multiply", 0, 0, O_MUL},
- {"divide", 0, 0, O_DIVIDE},\r
+ {"divide", 0, 0, O_DIVIDE},
{"comp", 0, 0, O_COMP},
{"column-plot", 1, 0, O_COLUMN_PLOT},
{"row-plot", 1, 0, O_ROW_PLOT},
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: if2.cpp,v 1.7 2001/01/09 22:31:47 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
if2_usage (const char *program)
int opt_verbose = 0;
int opt_add = 0;
int opt_sub = 0;
- int opt_mul = 0;\r
+ int opt_mul = 0;
bool opt_divide = false;
int opt_comp = 0;
bool opt_bImageOutputFile = false;
opt_sub = 1;
opt_bImageOutputFile = true;
break;
- case O_MUL:\r
- opt_mul = 1;\r
- opt_bImageOutputFile = true;\r
- break;\r
- case O_DIVIDE:\r
- opt_divide = true;\r
- opt_bImageOutputFile = true;\r
- break;\r
+ case O_MUL:
+ opt_mul = 1;
+ opt_bImageOutputFile = true;
+ break;
+ case O_DIVIDE:
+ opt_divide = true;
+ opt_bImageOutputFile = true;
+ break;
case O_ROW_PLOT:
opt_rowPlot = strtol(optarg, &endptr, 10);
if (endptr != optarg + strlen(optarg)) {
if (opt_add) {
strOperation = "Add Images";
- im_in1.addImages (im_in2, *pim_out);\r
+ im_in1.addImages (im_in2, *pim_out);
} else if (opt_sub) {
- strOperation = "Subtract Images";\r
- im_in1.subtractImages (im_in2, *pim_out);\r
- } else if (opt_mul) {\r
- strOperation = "Multiply Images";\r
- im_in1.multiplyImages (im_in2, *pim_out);\r
- } else if (opt_divide) {\r
- strOperation = "Divide Images";\r
- im_in1.divideImages (im_in2, *pim_out);\r
- }\r
+ strOperation = "Subtract Images";
+ im_in1.subtractImages (im_in2, *pim_out);
+ } else if (opt_mul) {
+ strOperation = "Multiply Images";
+ im_in1.multiplyImages (im_in2, *pim_out);
+ } else if (opt_divide) {
+ strOperation = "Divide Images";
+ im_in1.divideImages (im_in2, *pim_out);
+ }
if (opt_comp) {
double d, r, e;
im_in1.comparativeStatistics (im_in2, d, r, e);
std::cout << "d=" << d << ", r=" << r << ", e=" << e << std::endl;
}
- \r
+
int i;
if (opt_columnPlot > 0) {
if (opt_columnPlot >= nx || opt_columnPlot >= nx2) {
double* plot_xaxis = new double [nx];
for (i = 0; i < nx; i++)
plot_xaxis[i] = i;
- \r
- PlotFile plotFile (3, nx);\r
- \r
- plotFile.addColumn (0, plot_xaxis);\r
- plotFile.addColumn (1, v1[opt_columnPlot]);\r
- plotFile.addColumn (2, v2[opt_columnPlot]);\r
- std::ostringstream os;\r
- os << "Column " << opt_columnPlot << " Comparison";\r
- plotFile.addDescription (os.str().c_str());\r
- std::string title("title ");\r
- title += os.str();\r
- plotFile.addEzsetCommand (title.c_str());\r
- plotFile.addEzsetCommand ("xlabel Column");\r
- plotFile.addEzsetCommand ("ylabel Pixel Value");\r
- plotFile.addEzsetCommand ("box");\r
- plotFile.addEzsetCommand ("grid");\r
- plotFile.addEzsetCommand ("xticks major 5");\r
-\r
- plotFile.fileWrite (strOutFile.c_str());\r
- \r
+
+ PlotFile plotFile (3, nx);
+
+ plotFile.addColumn (0, plot_xaxis);
+ plotFile.addColumn (1, v1[opt_columnPlot]);
+ plotFile.addColumn (2, v2[opt_columnPlot]);
+ std::ostringstream os;
+ os << "Column " << opt_columnPlot << " Comparison";
+ plotFile.addDescription (os.str().c_str());
+ std::string title("title ");
+ title += os.str();
+ plotFile.addEzsetCommand (title.c_str());
+ plotFile.addEzsetCommand ("xlabel Column");
+ plotFile.addEzsetCommand ("ylabel Pixel Value");
+ plotFile.addEzsetCommand ("box");
+ plotFile.addEzsetCommand ("grid");
+ plotFile.addEzsetCommand ("xticks major 5");
+
+ plotFile.fileWrite (strOutFile.c_str());
+
delete plot_xaxis;
}
return (1);
}
double* plot_xaxis = new double [ny];
- double* v1Row = new double [ny];\r
+ double* v1Row = new double [ny];
double* v2Row = new double [ny2];
for (i = 0; i < ny; i++)
plotFile.addColumn (0, plot_xaxis);
plotFile.addColumn (1, v1Row);
plotFile.addColumn (2, v2Row);
- std::ostringstream os;\r
- os << "Row " << opt_rowPlot << " Comparison";\r
- plotFile.addDescription (os.str().c_str());\r
- std::string title("title ");\r
- title += os.str();\r
- plotFile.addEzsetCommand (title.c_str());\r
- plotFile.addEzsetCommand ("xlabel Row");\r
- plotFile.addEzsetCommand ("ylabel Pixel Value");\r
- plotFile.addEzsetCommand ("box");\r
- plotFile.addEzsetCommand ("grid");\r
- plotFile.addEzsetCommand ("xticks major 5");\r
+ std::ostringstream os;
+ os << "Row " << opt_rowPlot << " Comparison";
+ plotFile.addDescription (os.str().c_str());
+ std::string title("title ");
+ title += os.str();
+ plotFile.addEzsetCommand (title.c_str());
+ plotFile.addEzsetCommand ("xlabel Row");
+ plotFile.addEzsetCommand ("ylabel Pixel Value");
+ plotFile.addEzsetCommand ("box");
+ plotFile.addEzsetCommand ("grid");
+ plotFile.addEzsetCommand ("xticks major 5");
plotFile.fileWrite (strOutFile.c_str());
- delete plot_xaxis;\r
- delete v1Row;\r
- delete v2Row;\r
+ delete plot_xaxis;
+ delete v1Row;
+ delete v2Row;
}
if (opt_bImageOutputFile) {
pim_out->labelAdd (Array2dFileLabel::L_HISTORY, strOperation.c_str(), timerProgram.timerEnd());
pim_out->fileWrite (strOutFile);
}
- \r
+
return (0);
}
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ifexport.cpp,v 1.4 2001/09/24 09:40:42 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: ifexport.cpp,v 1.4 2001/09/24 09:40:42 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
enum { O_AUTO_FULL, O_AUTO_STD0_1, O_AUTO_STD0_5, O_AUTO_STD1, O_AUTO_STD2, O_AUTO_STD3 };
static const char O_AUTO_FULL_STR[]="full";
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ifinfo.cpp,v 1.6 2000/12/29 19:30:08 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: ifinfo.cpp,v 1.6 2000/12/29 19:30:08 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
im->printLabels (std::cout);
if (opt_stats) {
- std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n";\r
- std::cout << "Data type: ";\r
- if (im->dataType() == Array2dFile::DATA_TYPE_COMPLEX)\r
- std::cout << "Complex\n";\r
- else \r
- std::cout << "Real\n";\r
+ std::cout << "Size: (" << im->nx() << "," << im->ny() << ")\n";
+ std::cout << "Data type: ";
+ if (im->dataType() == Array2dFile::DATA_TYPE_COMPLEX)
+ std::cout << "Complex\n";
+ else
+ std::cout << "Real\n";
im->printStatistics (std::cout);
}
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: linogram.cpp,v 1.4 2003/04/04 20:04:42 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: linogram.cpp,v 1.4 2003/04/04 20:04:42 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: mpiworld.cpp,v 1.3 2001/01/16 23:19:03 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: nographics.cpp,v 1.3 2003/01/23 23:35:58 kevin Exp $
+** $Id$
**
** 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 is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2helix.cpp,v 1.2 2002/05/03 10:28:17 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: phm2helix.cpp,v 1.2 2002/05/03 10:28:17 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2if.cpp,v 1.25 2002/05/03 10:28:17 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.25 2002/05/03 10:28:17 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
phm2if_usage (const char *program)
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phm2pj.cpp,v 1.32 2002/05/03 10:28:17 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: phm2pj.cpp,v 1.32 2002/05/03 10:28:17 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pj2if.cpp,v 1.9 2001/01/16 23:47:29 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: pj2if.cpp,v 1.9 2001/01/16 23:47:29 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
pj2if_usage (const char *program)
* ** This is part of the CTSim program
* ** Copyright (C) 1983-2000 Kevin Rosenberg
* **
-* ** $Id: pjHinterp.cpp,v 1.4 2002/06/20 08:22:48 kevin Exp $
+* ** $Id$
* **
* ** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: pjHinterp.cpp,v 1.4 2002/06/20 08:22:48 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void pjHinterp_usage ( const char *program )
{
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pjinfo.cpp,v 1.5 2001/01/10 21:21:53 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: pjinfo.cpp,v 1.5 2001/01/10 21:21:53 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
pjinfo_usage (const char *program)
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pjrec.cpp,v 1.26 2002/05/03 10:28:17 kevin Exp $
+** $Id$
**
** 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
{0, 0, 0, 0}
};
-static const char* g_szIdStr = "$Id: pjrec.cpp,v 1.26 2002/05/03 10:28:17 kevin Exp $";
+static const char* g_szIdStr = "$Id$";
void
pjrec_usage (const char *program)