$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'});
$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";
<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>
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">
<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>
** 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
// 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";
argv++;
argc--;
iReturn = processCommand (argc, argv);
- } else if (argc > 1){
+ } else if (argc >= 1) {
iReturn = processCommand (argc, argv);
} else {
s_bInteractive = true;