154 |
|
if ($nprocs > 1 && $ambounce > 0 && $ambcache && defined($ambfile)) { |
155 |
|
if (!defined($outzbf) && !defined($outdir)) { |
156 |
|
# Straight picture output, so just randomize sample order |
157 |
< |
system "cnt $res[1] $res[3] | sort -R > /tmp/ord$$.txt"; |
158 |
< |
die "sort error\n" if ( $? ); |
157 |
> |
system "cnt -s $res[1] $res[3] > /tmp/ord$$.txt"; |
158 |
> |
die "cnt error\n" if ( $? ); |
159 |
|
system "@vwraysA -ff -i < /tmp/ord$$.txt " . |
160 |
|
"| @rtraceA -ffa -ov '$oct' > /tmp/pix$$.txt"; |
161 |
|
die "Error running rtrace\n" if ( $? ); |
162 |
< |
system "( getinfo < /tmp/pix$$.txt ; getinfo - < /tmp/pix$$.txt " . |
163 |
< |
"| rlam /tmp/ord$$.txt - | sort -k2rn -k1n ) " . |
164 |
< |
"| pvalue -r -Y $res[3] +X $res[1] | getinfo -a 'VIEW=$view'"; |
162 |
> |
system "( getinfo < /tmp/pix$$.txt | getinfo -a 'VIEW=$view'; " . |
163 |
> |
"getinfo - < /tmp/pix$$.txt | rlam /tmp/ord$$.txt - " . |
164 |
> |
"| sort -k2rn -k1n ) | pvalue -r -Y $res[3] +X $res[1]"; |
165 |
|
die "rlam error\n" if ( $? ); |
166 |
|
unlink ("/tmp/ord$$.txt", "/tmp/pix$$.txt"); |
167 |
|
exit 0; |