X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=cgi-bin%2Fctsim.cgi.in;fp=cgi-bin%2Fctsim.cgi.in;h=2025006484ae36b6eabcff7b93e1c44801cc94ec;hb=881c50c413b78ff7eb8444c41692cc8f747d3db6;hp=5571e549b5b60dfbc711e05079d0105ea8b8ce40;hpb=9427b763fb59d2e8b4b2cd3c5f94f621ec86fd3e;p=ctsim.git
diff --git a/cgi-bin/ctsim.cgi.in b/cgi-bin/ctsim.cgi.in
index 5571e54..2025006 100755
--- a/cgi-bin/ctsim.cgi.in
+++ b/cgi-bin/ctsim.cgi.in
@@ -46,7 +46,7 @@ my $Phantom_NSample = FilterToNumber($in{'Phantom_NSample'});
$error .= "Phantom name must not be blank
" if ($Phantom_Name eq "");
$error .= "Phantom Size must be between 5 and 512
" if ($Phantom_Nx < 5 || $Phantom_Nx > 512 || $Phantom_Ny < 5 || $Phantom_Ny > 512);
$error .= "Phantom NSample must be between 1 and 5
" if ($Phantom_NSample < 1 || $Phantom_NSample > 5);
-$error .= "View Ratio must be between 1 and 100
" if ($Phantom_ViewRatio < 1 || $Phantom_ViewRatio > 100);
+$error .= "View Ratio must be between 0 and 100
" 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 .= "
Phantom Image | Reconstructed Image |
$png_gp_out | \n";
$out .= "$png_pjrec_out |
Projection Sinusoid | Reconstruction Error |
Projection Sinogram | Reconstruction Error |
$png_pj_out | \n";
$out .= "$sub_out $png_sub_out |
Execution time: $execution_time seconds\n"; - $out .= "
\nError Measurements
";
+ $out .= "
Error Measurements
";
$out .= "$diff_out";
+ $out .= "
Execution time: $execution_time seconds\n"; } $out .= "