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.4 by greg, Fri Jan 5 18:23:53 2024 UTC vs.
Revision 2.6 by greg, Thu Oct 3 18:45:27 2024 UTC

# Line 41 | Line 41 | while ($#ARGV >= 0) {
41          my ($dest) = ("$ARGV[0]" =~ /^([^.]+)/);
42          $dest .= ".bmp";
43          my $cmd="";
44 <        if ("$format" =~ /^32-bit_rle_(rgb|xyz)e *$/) {
44 >        if ("$format" =~ /^32-bit_rle_(rgb|xyz)e *$/ || "$format" =~ /^Radiance_spectra *$/) {
45                  if ($pfilt) {
46                          $cmd = $pfilt . " '$ARGV[0]' | ra_bmp -e auto - '$dest'";
47                  } else {
48                          $cmd = "ra_bmp -e auto '$ARGV[0]' '$dest'";
49                  }
50        } elsif ("$format" =~ /^Radiance_spectra *$/) {
51                $cmd = "rcomb -fc -c RGB '$ARGV[0]' ";
52                $cmd .= "| $pfilt " if ($pfilt);
53                $cmd .=  "| ra_bmp -e auto - '$dest'";
50          } elsif ("$format" =~ /^16-bit_encoded_depth *$/) {
51                  $cmd = "rcode_depth -r -ff -ho -Ho '$ARGV[0]' ";
52                  $cmd .= q{| rcalc -if -of -e 'cond=9e9-$1;$1=$1' | total -if -u};
# Line 64 | Line 60 | while ($#ARGV >= 0) {
60                  $cmd .= "| falsecolor -l '$unit' -m 1 -s $dmax | ra_bmp - '$dest'";
61          } elsif ("$format" =~ /^[1-9][0-9]*-bit_indexed_name *$/) {
62                  $cmd = "rcode_ident -r -n '$ARGV[0]' " .
63 <                        "| getinfo +d -c rcalc -e 'cc(x):(.1+.8*rand(x))^2' " .
63 >                        "| getinfo +d -c rcalc -of -e 'cc(x):(.1+.8*rand(x))^2' " .
64                          q{-e '$1=cc(.398*$1-11.2);$2=cc(-1.152*$1+41.7);$3=cc(8.571*$1-8.15)' } .
65 <                        "| pvalue -r -d ";
65 >                        "| pvalue -r -df ";
66                  $cmd .= "| $pfilt " if ($pfilt);
67                  $cmd .= "| ra_bmp - '$dest'";
68          } elsif ("$format" =~ /^32-bit_encoded_normal *$/) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines