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

Comparing ray/src/px/falsecolor.pl (file contents):
Revision 2.14 by greg, Sun Aug 25 22:24:01 2019 UTC vs.
Revision 2.15 by greg, Sat Jan 4 16:39:10 2020 UTC

# Line 124 | Line 124 | if ($needfile == 1 && $picture eq '-') {
124  
125   # Find a good scale for auto mode.
126   if ($scale =~ m/[aA].*/) {
127 <    my @histo = split(/\s/, `phisto $picture| tail -2`);
127 >    my @histo = split(/\s/, `phisto $picture|`);
128      # e.g. $ phisto tests/richmond.hdr| tail -2
129      # 3.91267   14
130      # 3.94282   6
131 <    my $LogLmax = $histo[0];
131 >    my $LogLmax = $histo[-4];
132      $scale = $mult / 179 * 10**$LogLmax;
133   }
134  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines