r657: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 31 Mar 2001 16:43:20 +0000 (16:43 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 31 Mar 2001 16:43:20 +0000 (16:43 +0000)
cgi-bin/ctsim.cgi.in
html/simulate.html.in
tools/ctsimtext.cpp

index 5571e549b5b60dfbc711e05079d0105ea8b8ce40..2025006484ae36b6eabcff7b93e1c44801cc94ec 100755 (executable)
@@ -46,7 +46,7 @@ my $Phantom_NSample = FilterToNumber($in{'Phantom_NSample'});
 $error .= "Phantom name must not be blank<br>" if ($Phantom_Name eq "");
 $error .= "Phantom Size must be between 5 and 512<br>" if ($Phantom_Nx < 5 || $Phantom_Nx > 512 || $Phantom_Ny < 5 || $Phantom_Ny > 512);
 $error .= "Phantom NSample must be between 1 and 5<br>" if ($Phantom_NSample < 1 || $Phantom_NSample > 5);
-$error .= "View Ratio must be between 1 and 100<br>" if ($Phantom_ViewRatio < 1 || $Phantom_ViewRatio > 100);
+$error .= "View Ratio must be between 0 and 100<br>" if ($Phantom_ViewRatio <= 0 || $Phantom_ViewRatio > 100);
 
 my $PJ_Geometry = FilterMetaChars($in{'PJ_Geometry'});
 my $PJ_NDet = FilterToNumber($in{'PJ_NDet'});
@@ -223,17 +223,17 @@ if ($error ne "") {
   $out .= "<TABLE><TR><TD><b>Phantom Image</b></TD><TD><b>Reconstructed Image</b></TD></TR>\n";
   $out .= "<TR><TD><IMG SRC=\"$phantom_png_url\"><br><FONT SIZE=1>$png_gp_out</FONT></TD>\n";
   $out .= "<TD><IMG SRC=\"$ir_png_url\"><br><FONT SIZE=1>$png_pjrec_out</FONT></TD></TR>\n";
-  $out .= "<TR><TD><b>Projection Sinusoid</b></TD><TD><b>Reconstruction Error</b></TD></TR>\n";
+  $out .= "<TR><TD><b>Projection Sinogram</b></TD><TD><b>Reconstruction Error</b></TD></TR>\n";
   $out .= "<TR><TD><IMG SRC=\"$pj_png_url\"><br><FONT SIZE=1>$png_pj_out</FONT></TD>\n";
   $out .= "<TD><IMG SRC=\"$sub_png_url\"><br><FONT SIZE=2>$sub_out</FONT><br><FONT SIZE=1>$png_sub_out</FONT></TD></TR>\n";
   $out .= "</TABLE>";
-  $out .= "<p>Execution time: $execution_time seconds\n";
-  $out .= "<p>\n<b>Error Measurements</b><br>";
+  $out .= "<p><b>Error Measurements</b><br>";
   $out .= "$diff_out";
+  $out .= "<p>Execution time: $execution_time seconds\n";
 }
 
 $out .= "<HR>\n";
-$out .= "Specify another <a href=\"http://www.ctsim.org/online-sim/simulate.html\">simulation</a>.<br>";
+$out .= "Specify another <a href=\"http://www.ctsim.org/simulate.shtml\">simulation</a>.<br>";
 $out .= "Return to CTSim's <A HREF=\"http://www.ctsim.org\">home</a>.<br>\n";
 $out .= "</BODY> </HTML>";
 $out .= "\n";
index 5be1c6edc28408558bd2f24ca78e0b5e2e273b86..3be32727b1644a0eb9688c1a4329c133c52dd794 100644 (file)
@@ -5,10 +5,12 @@
 <meta name="description" content="CTsim - The Open-Source Computed Tomography Simulator">
 <meta name="keywords" content="ctsim, computed tomography, ct, open source, scientific software, simulation, c++, online simulation, medical imaging">
 <LINK rel="stylesheet" href="http://www.ctsim.org/main.css" type="text/css">
-<TITLE>CTSim Online Simulation</TITLE>
+<TITLE>CTSim's Online Computed Tomography Simulator</TITLE>
 </HEAD>
 <BODY BGCOLOR="#FFFFFF">
-<H1><a href="http://www.ctsim.org"">CTSim</a> Online Simulation</H1>
+<H1>
+<a href="http://www.ctsim.org">CTSim's</a>
+Online Computed Tomography Simulator</H1>
 Reasonable defaults have been filled into this form. For detailed explanations of the
 parameters on this form, please visit CTSim's online <a href="http://www.ctsim.org/manual/ctsim_contents.html">manual</a>.<br>
 
@@ -48,7 +50,7 @@ Geometry:<br>
 Number of Detectors: <input type="text" name="PJ_NDet" size="4" value="200"><p>
 Number of Rotations: <input type="text" name="PJ_NRot" size="4" value="200"><p>
 Focal Length: <input type="text" name="PJ_FocalLength" size="4" value="2.0"><p>
-Scan Ratio: <input type="text" name="PJ_ScanRatio" size="4" value="1.1"><p>
+Scan Ratio: <input type="text" name="PJ_ScanRatio" size="4" value="1.0"><p>
 Number of Rays<br>(samples) per detector: <input type="text" name="PJ_NRay" size="2" value="3"><p>
 Rotation Angle<br>as a fraction of a cricle: <input type="text" name="PJ_RotAngle" size="3" value="1.0"><br>
 </td><td valign="top">
@@ -83,7 +85,7 @@ Backprojection Method:<br>
 <input type="radio" name="IR_Backproj" value="idiff" checked>Difference (integer math)<br>
 </td></tr></table>
 <p>
-<input type="submit" value="Simulate"><input type="reset" value="Clear fields">
+<input type="submit" value="Simulate"><input type="reset" value="Set Fields to Default">
 </form>
 </BODY>
 </HTML>
index c7b4d532eba0a79f465781fe84d1fca9786a51ac..0414cc94abc06ea84be1338527861bd1562525e7 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ctsimtext.cpp,v 1.17 2001/01/17 04:03:42 kevin Exp $
+**  $Id: ctsimtext.cpp,v 1.18 2001/03/31 16:43:20 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.17 2001/01/17 04:03:42 kevin Exp $";
+static const char* const g_szIdStr = "$Id: ctsimtext.cpp,v 1.18 2001/03/31 16:43:20 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";
@@ -109,7 +109,7 @@ ctsimtext_main (int argc, char * argv[])
     argv++;
     argc--;
     iReturn = processCommand (argc, argv);
-  } else if (argc > 1){
+  } else if (argc >=  1) {
     iReturn = processCommand (argc, argv);
   } else {
     s_bInteractive = true;