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.5 by greg, Thu Oct 3 18:35:53 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};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines