r1853: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 1 May 2002 14:37:23 +0000 (14:37 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 1 May 2002 14:37:23 +0000 (14:37 +0000)
COPYRIGHT
debian/copyright
debian/ctsim.doc-base
debian/rules
doc/ctsim.tex
tools/ctsimtext.cpp
tools/pjHinterp.cpp

index 89fd6dafee3a175b3661e2f56a6a5a269a299fa6..c557655dfd9939448acd3884ddea1028701bbf93 100644 (file)
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,12 +1,6 @@
 /*****************************************************************************
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2000 Kevin Rosenberg
-**
-**  $Id: COPYRIGHT,v 1.1 2000/04/28 13:02:43 kevin Exp $
-**  $Log: COPYRIGHT,v $
-**  Revision 1.1  2000/04/28 13:02:43  kevin
-**  Initial revision
-**
+**  Copyright (C) 1983-2002 Kevin Rosenberg
 **
 **  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
index 8a9afbde3187cde1aab7e032e6070cec590c1d06..d58965cbde5c8d37f882c25248554a3372b31c9c 100644 (file)
@@ -6,4 +6,6 @@ upstream author.
 
 Copyright:
 
+CTSim is Copyright (C) 1993-2002 by Kevin M. Rosenberg, M.D.
+
 CTSim is governed by the GNU GPL License.
index 1956ff5df8293c2a3749812731f0a6524d30ea4a..d75537e6cb612e981a5990b1cd75658a0613b579 100644 (file)
@@ -5,9 +5,6 @@ Abstract: Describes the
  use the CTSim Computed Tomography Simulator
 Section: math
 
-# Format: postscript
-# Files: /usr/share/doc/ctsim/ctsim.ps.gz
-
 Format: HTML
 Index: /usr/share/doc/ctsim/html/index.html
 Files: /usr/share/doc/ctsim/html/*.html
index ab5ea57719bc92f55a75d5cca633cb9c65b370e3..8a4681f198a2955d2c1fc98d713ee89b0054c845 100755 (executable)
@@ -38,7 +38,7 @@ clean:
        rm -f build-stamp configure-stamp
        # Add here commands to clean up after the build process.
        -$(MAKE) distclean
-       find . -type f -and -name *~ -or -name .*~ -exec rm -f {} \;
+       find . -type f -and -name "*~" -or -name ".*~" -exec rm -f {} \;
        rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
        dh_clean
 
index 8eae88ef8f7a06ae3a7e67e4c0502630d1b6560a..2a5738c70d103da569614dca2276a30b70aa46f3 100644 (file)
@@ -25,7 +25,7 @@
 
 \newcommand{\manvernum}[0]{1.0}
 \newcommand{\manver}[0]{v\manvernum}
-\newcommand{\mandate}[0]{February 22, 2001}
+\newcommand{\mandate}[0]{May 1, 2002}
 \newcommand{\ctsimfooter}{\setfooter{\thepage}{}{}{\small Manual \manver}{\small \mandate}{\thepage}}
 \newcommand{\doublehyphen}[1]{-\,-\texttt{#1}}
 \newcommand{\ctsimvernum}[0]{3.5.0}
@@ -55,7 +55,7 @@
 \setheader{{\it COPYRIGHT}}{}{}{\ctsimheadtitle}{}{{\it COPYRIGHT}}%
 \ctsimfooter
 
-Copyright (c) 1983-2001 Kevin M. Rosenberg, M.D.
+Copyright (c) 1983-2002 Kevin M. Rosenberg, M.D.
 
 Permission to use, copy, modify, and distribute this software and its
 documentation for any purpose is hereby granted without fee, provided that the
index 54236af2434427345044bb3b9ded2f8d82c253e5..2e05f71c7b1918de0f5a93a7f5c6705690b8a669 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ctsimtext.cpp,v 1.20 2001/09/24 09:40:42 kevin Exp $
+**  $Id: ctsimtext.cpp,v 1.21 2002/05/01 14:33:59 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
@@ -45,7 +45,7 @@ extern "C" {
 // 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.20 2001/09/24 09:40:42 kevin Exp $";
+static const char* const g_szIdStr = "$Id: ctsimtext.cpp,v 1.21 2002/05/01 14:33:59 kevin Exp $";
 static const char* const s_szProgramName = "ctsimtext";
 static const char* const s_szProgramName2 = "ctsimtext.exe";
 static const char* const s_szProgramName3 = "ctsimtext-lam";
@@ -100,10 +100,10 @@ interactive_usage ()
   std::cout << "  if2           Dual image file conversions\n";
   std::cout << "  phm2if        Convert a geometric phantom into an imagefile\n";
   std::cout << "  phm2pj        Take projections of a phantom object\n";
-  std::cout << "  phm2helix        Take projections of a phantom object\n";
+  std::cout << "  phm2helix     Take projections of a phantom object\n";
   std::cout << "  pjinfo        Projection file information\n";
   std::cout << "  pj2if         Convert an projection file into an imagefile\n";
-  std::cout << "  pjHinterp      Interpolate helical projections of a phantom object\n";
+  std::cout << "  pjHinterp     Interpolate helical projections of a phantom object\n";
   std::cout << "  pjrec         Projection reconstruction\n";
   std::cout << "  quit          Quits shell\n";
   std::cout << "All functions accept --help as parameter for online help\n\n";
@@ -257,10 +257,10 @@ processCommand (int argc, char* const argv[])
       return phm2if_main (argc, argv);
     else if (strcasecmp (pszFunction, "phm2pj") == 0)
       return phm2pj_main (argc, argv);
-       else if (strcasecmp (pszFunction, "phm2helix") == 0)
-         return phm2helix_main (argc, argv);
-       else if (strcasecmp (pszFunction, "pjHinterp") == 0)
-         return pjHinterp_main (argc, argv);
+    else if (strcasecmp (pszFunction, "phm2helix") == 0)
+      return phm2helix_main (argc, argv);
+    else if (strcasecmp (pszFunction, "pjHinterp") == 0)
+      return pjHinterp_main (argc, argv);
     else if (strcasecmp (pszFunction, "pj2if") == 0)
       return pj2if_main (argc, argv);
     else if (strcasecmp (pszFunction, "pjinfo") == 0)
index 3d1403fc3c1b0d741f801129e8cd03b4d9c8bec7..2f0b9dfeecd05537dfdf180f0cb9d2ef46abf90b 100644 (file)
@@ -9,7 +9,7 @@
 * **  This is part of the CTSim program
 * **  Copyright (C) 1983-2000 Kevin Rosenberg
 * **
-* **  $Id: pjHinterp.cpp,v 1.1 2001/09/24 09:40:42 kevin Exp $
+* **  $Id: pjHinterp.cpp,v 1.2 2002/05/01 14:33:59 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
@@ -43,116 +43,116 @@ static struct option my_options[] =
        {0, 0, 0, 0}
 };
 
-static const char* g_szIdStr = "$Id: pjHinterp.cpp,v 1.1 2001/09/24 09:40:42 kevin Exp $";
+static const char* g_szIdStr = "$Id: pjHinterp.cpp,v 1.2 2002/05/01 14:33:59 kevin Exp $";
 
 void pjHinterp_usage ( const char *program )
 {
-       std::cout << "usage: " << fileBasename(program) << " raysum-file interp-raysum-file [OPTIONS]" << std::endl;
-       std::cout << "Interpolation of helical data in raw data space" << std::endl;
-       std::cout << "  raysum-file    Input raysum file" << std::endl;
-    std::cout << "  interp-file    Output interpolated raysum file " << std::endl;
-       std::cout << "  --trace        Set tracing to level" << std::endl;
-       std::cout << "     none        No tracing (default)" << std::endl;
-       std::cout << "     console     Text level tracing" << std::endl;
-       std::cout << "     phantom     Trace phantom" << std::endl;
-       std::cout << "     proj        Trace allrays" << std::endl;
-       std::cout << "     plot        Trace plotting" << std::endl;
-       std::cout << "     clipping    Trace clipping" << std::endl;
-       std::cout << "  --verbose      Turn on verbose mode" << std::endl;
-       std::cout << "  --debug        Turn on debug mode" << std::endl;
-       std::cout << "  --version      Print version" << std::endl;
-       std::cout << "  --help         Print this help message" << std::endl;
+  std::cout << "usage: " << fileBasename(program) << " raysum-file interp-raysum-file [OPTIONS]" << std::endl;
+  std::cout << "Interpolation of helical data in raw data space" << std::endl;
+  std::cout << "  raysum-file    Input raysum file" << std::endl;
+  std::cout << "  interp-file    Output interpolated raysum file " << std::endl;
+  std::cout << "  --trace        Set tracing to level" << std::endl;
+  std::cout << "     none        No tracing (default)" << std::endl;
+  std::cout << "     console     Text level tracing" << std::endl;
+  std::cout << "     phantom     Trace phantom" << std::endl;
+  std::cout << "     proj        Trace allrays" << std::endl;
+  std::cout << "     plot        Trace plotting" << std::endl;
+  std::cout << "     clipping    Trace clipping" << std::endl;
+  std::cout << "       --verbose      Turn on verbose mode" << std::endl;
+  std::cout << "  --debug        Turn on debug mode" << std::endl;
+  std::cout << "  --version      Print version" << std::endl;
+  std::cout << "  --help         Print this help message" << std::endl;
 }
 
 
 int
 pjHinterp_main(int argc, char * const argv[])
 {
-       Projections projGlobal;
-       char* pszProjFilename = NULL;
-       char* pszInterpFilename = NULL;
-       bool bOptVerbose = false;
-       bool bOptDebug = 1;
-       int optTrace = Trace::TRACE_NONE;
-       char *endptr = NULL;
-       char *endstr; 
-       int opt_interpview=-1;
-
-       while (1) {
-               int c = getopt_long(argc, argv, "", my_options, NULL);
-
-               if (c == -1)
-                break;
-
-               switch (c) {
-               case O_INTERPVIEW:
-                       opt_interpview = strtol(optarg, &endptr, 10);
-                       endstr = optarg + strlen(optarg);
-                       if (endptr != endstr) { 
-                               std::cerr << "Error setting --interpview to %s" << optarg << std::endl;
-                               pjHinterp_usage(argv[0]);
-                               return(1);
-                       }
-                       break;
-               case O_VERBOSE:
-                       bOptVerbose = true;
-                       break;
-               case O_DEBUG:
-                       bOptDebug = true;
-                       break;
-               case O_TRACE:
-                       if ((optTrace = Trace::convertTraceNameToID(optarg)) 
-                                                       == Trace::TRACE_INVALID) {
-                               pjHinterp_usage(argv[0]);
-                               return (1);
-                       }
-                       break;
-               case O_VERSION:
+  Projections projGlobal;
+  char* pszProjFilename = NULL;
+  char* pszInterpFilename = NULL;
+  bool bOptVerbose = false;
+  bool bOptDebug = 1;
+  int optTrace = Trace::TRACE_NONE;
+  char *endptr = NULL;
+  char *endstr; 
+  int opt_interpview=-1;
+  
+  while (1) {
+    int c = getopt_long(argc, argv, "", my_options, NULL);
+    
+    if (c == -1)
+      break;
+    
+    switch (c) {
+    case O_INTERPVIEW:
+      opt_interpview = strtol(optarg, &endptr, 10);
+      endstr = optarg + strlen(optarg);
+      if (endptr != endstr) { 
+       std::cerr << "Error setting --interpview to %s" << optarg << std::endl;
+       pjHinterp_usage(argv[0]);
+       return(1);
+      }
+      break;
+    case O_VERBOSE:
+      bOptVerbose = true;
+      break;
+    case O_DEBUG:
+      bOptDebug = true;
+      break;
+    case O_TRACE:
+      if ((optTrace = Trace::convertTraceNameToID(optarg)) 
+         == Trace::TRACE_INVALID) {
+       pjHinterp_usage(argv[0]);
+       return (1);
+      }
+      break;
+    case O_VERSION:
 #ifdef VERSION
-                       std::cout <<  "Version " <<  VERSION << std::endl << 
-                                                                                               g_szIdStr << std::endl;
+      std::cout <<  "Version " <<  VERSION << std::endl << 
+       g_szIdStr << std::endl;
 #else
-                       std::cout << "Unknown version number" << std::endl;
+      std::cout << "Unknown version number" << std::endl;
 #endif
-                       return (0);
-
-               case O_HELP:
-               case '?':      
-                       pjHinterp_usage(argv[0]);
-                       return (0);
-               default:
-                       pjHinterp_usage(argv[0]);
-                       return (1);
-               } // end switch
-       } // end while
-
-    if (optind + 2 != argc) {
+      return (0);
+      
+    case O_HELP:
+    case '?':      
+      pjHinterp_usage(argv[0]);
+      return (0);
+    default:
       pjHinterp_usage(argv[0]);
       return (1);
-    }
-
-    pszProjFilename = argv[optind];
-
-    pszInterpFilename = argv[optind + 1];
-
-       Projections projections;
-       if ( projections.read(pszProjFilename) != true ){ 
-                       std::cerr << "Error reading input file " << pszProjFilename << std::endl;       
-                       return (1);
-       }
-       if (bOptVerbose) { 
-                       ostringstream os;
-                       projections.printScanInfo(os);
-                       std::cout << os.str();
-       }
-
-       int status = projections.Helical180LI(opt_interpview);
-       if ( status != 0 )  return (1);
-       status = projections.HalfScanFeather();
-       if ( status != 0 )  return (1);
-       projections.write( pszInterpFilename  );
-       
-       return (0);
+    } // end switch
+  } // end while
+  
+  if (optind + 2 != argc) {
+    pjHinterp_usage(argv[0]);
+    return (1);
+  }
+  
+  pszProjFilename = argv[optind];
+  
+  pszInterpFilename = argv[optind + 1];
+  
+  Projections projections;
+  if ( projections.read(pszProjFilename) != true ){ 
+    std::cerr << "Error reading input file " << pszProjFilename << std::endl;  
+    return (1);
+  }
+  if (bOptVerbose) { 
+    ostringstream os;
+    projections.printScanInfo(os);
+    std::cout << os.str();
+  }
+  
+  int status = projections.Helical180LI(opt_interpview);
+  if ( status != 0 )  return (1);
+  status = projections.HalfScanFeather();
+  if ( status != 0 )  return (1);
+  projections.write( pszInterpFilename  );
+  
+  return (0);
 }