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

Comparing ray/src/px/phisteq.csh (file contents):
Revision 3.1 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 3.4 by greg, Mon Nov 10 19:08:19 2008 UTC

# Line 4 | Line 4 | set Ldmin=1            # minimum display luminance
4   set Ldmax=100           # maximum display luminance
5   set nsteps=100          # number of steps in perceptual histogram
6   set cvratio=0.08        # fraction of pixels to ignore in envelope clipping
7 < set td=/usr/tmp
7 > set td=/tmp
8   set tf1=$td/hist$$
9   set tf1b=$td/hist$$.new
10   set tf2=$td/cumt$$
# Line 12 | Line 12 | set tf3=$td/histeq$$.cal
12   set tf4=$td/cf$$.cal
13   set tf=($tf1 $tf1b $tf2 $tf3 $tf4)
14   if ( $#argv != 1 ) then
15 <        echo "Usage: $0 input.pic > output.pic"
15 >        echo "Usage: $0 input.hdr > output.hdr"
16          exit 1
17   endif
18   set ifile=$1
# Line 57 | Line 57 | set totcount=`sed 's/^.*[      ]//' $tf1 | total`
57   set tst=1
58   while ( $totcount > 0 )
59          sed 's/^.*[     ]//' $tf1 | total -1 -r \
60 <                | rcalc -e '$1=$1/'$totcount | lam $tf1 - \
60 >                | rcalc -e '$1=$1/'$totcount | rlam $tf1 - \
61                  | tabfunc -i 0 cf > $tf4
62          if ( $tst <= 0 ) break
63          rcalc -f $tf4 -f $tf3 -e "T:$totcount*Stepsiz" \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines