ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rcode2bmp.pl
(Generate patch)

Comparing ray/src/util/rcode2bmp.pl (file contents):
Revision 2.1 by greg, Fri Jul 26 00:34:07 2019 UTC vs.
Revision 2.2 by greg, Tue Jan 21 18:00:17 2020 UTC

# Line 52 | Line 52 | while ($#ARGV >= 0) {
52                  $cmd .= q{| rcalc -if -of -e 'cond=9e9-$1;$1=$1' | total -if -u};
53                  my $dmax=`$cmd`;
54                  $dmax = 2**(int(log($dmax)/log(2))+1);
55 <                my $unit=`getinfo < '$ARGV[0]' | sed -n 's/^REFDEPTH= *[0-9.]*[^0-9.]//p'`;
55 >                my $unit=`getinfo < '$ARGV[0]' | sed -n 's/^REFDEPTH= *[0-9.]*[^a-zA-Z]*//p'`;
56                  chomp $unit;
57                  $unit="Depth" if ( ! $unit );
58                  $cmd = "rcode_depth -r -ff '$ARGV[0]' | pvalue -r -df -b ";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines