r120: *** empty log message ***
[ctsim.git] / cgi-bin / ctsim.cgi.in
index 898aa89f1450186bc5c291fe714225929ed038d0..5e27ccb8e7b40176cf94404dc4bbb6e8ee98e216 100755 (executable)
@@ -98,6 +98,8 @@ my $ctrec_ver = "$::bindir/ctrec";
 my $phm2pj_ver = "$::bindir/phm2pj";
 my $phm2if_ver = "$::bindir/phm2if";
 my $diff_ver = "$::bindir/if-2";
+my $ifinfo_ver = "$::bindir/ifinfo";
+
 $ctrec_ver = "/opt/lam/bin/mpirun N N $::lamrundir/ctrec-lam" if $MPI;
 $phm2pj_ver = "/opt/lam/bin/mpirun N N $::lamrundir/phm2pj-lam" if $MPI;
 $phm2if_ver = "/opt/lam/bin/mpirun N N $::lamrundir/phm2if-lam" if $MPI;
@@ -107,6 +109,7 @@ my $pj_cmd = "$phm2pj_ver $pj_fname $PJ_NDet $PJ_NRot --phantom $Phantom_Name --
 my $pj_if_cmd = "$::bindir/pj2if $pj_fname $pj_if_fname";
 my $ir_cmd = "$ctrec_ver $pj_fname $ir_fname $IR_Nx $IR_Ny --filter $IR_Filter --filter-param $IR_Filter_Param --interp $IR_Interp --backproj $IR_Backproj";
 my $diff_cmd = "$diff_ver $phantom_fname $ir_fname $diff_fname --comp";
+my $compare_cmd = "$ifinfo_ver $phantom_fname $ir_fname";
 
 my $window_options = "--auto $auto_window_img";
 if ($Disp_Min ne 'auto') {
@@ -149,6 +152,7 @@ if ($error ne "") {
   my $png_ir_out;
   my $png_pj_out;
   my $png_diff_out;
+  my $compare_out;
   $gp_out = `$gp_cmd`;
   if (-s $phantom_fname) {
     $pj_out .= `$pj_cmd`;
@@ -161,6 +165,7 @@ if ($error ne "") {
        $png_ir_out .= `$png2_cmd`;
        $diff_out .= `$diff_cmd`;
        $png_diff_out .= `$png4_cmd`;
+       $compare_out = `$compare_cmd`;
       }
     }
   }
@@ -196,6 +201,8 @@ if ($error ne "") {
   $out .= "<TD><IMG SRC=\"$diff_png_url\"><br><FONT SIZE=2>$diff_out</FONT><br><FONT SIZE=1>$png_diff_out</FONT></TD></TR>\n";
   $out .= "</TABLE>";
   $out .= "Execution time: $execution_time seconds\n";
+  $out .= "<p>\nStatistics<br>";
+  $out .= "$compare_out";
 }
 
 $out .= "<HR>\n";