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

Comparing ray/src/px/normpat.csh (file contents):
Revision 2.4 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.5 by greg, Thu Jan 29 22:18:26 2004 UTC

# Line 37 | Line 37 | dofiles:
37   onintr quit
38   set td=/usr/tmp/np$$
39   mkdir $td
40 + goto skipthis
41   cat > $td/coef.fmt << '_EOF_'
42     rm:${  $25   };    gm:${  $26   };    bm:${  $27   };
43    rcx:${   $1   };   gcx:${   $9   };   bcx:${  $17   };
# Line 72 | Line 73 | cx=cos(wx); cy=cos(wy);
73   sx=sin(wx); sy=sin(wy);
74   wx=2*PI/xres*(x+.5); wy=2*PI/yres*(y+.5);
75   '_EOF_'
76 + skipthis:
77   foreach f ($*)
78          if ( $?verb ) then
79                  echo $f\:
# Line 86 | Line 88 | $ha
88   w
89   q
90   _EOF_
91 <        set resolu=`getinfo -d < $td/pf | sed 's/-Y \([0-9]*\) +X \([0-9]*\)/\2 \1/'`
91 >        set resolu=`getinfo -d < $td/pf | sed 's/-Y \([1-9][0-9]*\) +X \([1-9][0-9]*\)/\2 \1/'`
92          if ( ! $?dofsub ) then
93                  mv $td/pf $td/hf
94                  goto donefsub
95          endif
96 +        # if ( $?verb ) then
97 +        #       echo computing Fourier coefficients...
98 +        # endif
99 +        # pfilt -1 -x 32 -y 32 $td/pf | pvalue -h \
100 +        #       | rcalc -e 'xres:32;yres:32' -f $td/coef.cal \
101 +        #       | total -m | rcalc -o $td/coef.fmt \
102 +        #       > $td/coef
103          if ( $?verb ) then
104 <                echo computing Fourier coefficients...
96 <        endif
97 <        pfilt -1 -x 32 -y 32 $td/pf | pvalue -h \
98 <                | rcalc -e 'xres:32;yres:32' -f $td/coef.cal \
99 <                | total -m | rcalc -o $td/coef.fmt \
100 <                > $td/coef
101 <        if ( $?verb ) then
102 <                cat $td/coef
104 >                # cat $td/coef
105                  echo removing low frequencies...
106          endif
107 <        pcomb -f $td/coef -f $td/fsub.cal $td/pf > $td/hf
107 >        pgblur -r `ev "sqrt($resolu[1]*$resolu[2])/8"` $td/pf > $td/lf
108 >        pcomb -e 's=1/li(2);ro=s*ri(1);go=s*gi(1);bo=s*bi(1)' \
109 >                        $td/pf $td/lf > $td/hf
110 >        # pcomb -f $td/coef -f $td/fsub.cal $td/pf > $td/hf
111          donefsub:
112          if ( $?blend ) then
113                  if ( $?verb ) then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines