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

Comparing ray/src/px/pdfblur.csh (file contents):
Revision 2.2 by greg, Fri Sep 15 17:13:54 1995 UTC vs.
Revision 2.3 by greg, Sat Sep 16 08:36:41 1995 UTC

# Line 3 | Line 3
3   #
4   # Do depth-of-field blurring on picture
5   #
6 < if ($#argv < 5) then
7 <        echo "Usage: $0 aperture distance nsamp picfile zfile [pinterp opts]" >/dev/tty
6 > if ($#argv != 4) then
7 >        echo "Usage: $0 aperture distance nsamp viewfile" >/dev/tty
8          exit 1
9   endif
10   set a = "$1"
11   set d = "$2"
12   set n = "$3"
13 < set pict = "$4"
14 < set zbf = "$5"
13 > set vf = "$4"
14   set piopt = ($argv[6-]:q)
15 < cnt $n | rcalc -e `vwright i < $pict` \
15 > cnt $n | rcalc -e `vwright i < $vf` \
16   -e "M:$n/5+1;a:$a/2;d:$d;N:$n;" -e 'tmax:PI*a*(M+1)' \
17   -e 't=tmax/N*($1+rand($1))' \
18   -e 'theta=2*M*PI/(M-1)*(M-sqrt(M*M-(M-1)/(PI*a)*t))' \
# Line 23 | Line 22 | cnt $n | rcalc -e `vwright i < $pict` \
22   -e 'opy=ipy+rcost*ihy+rsint*ivy' \
23   -e 'opz=ipz+rcost*ihz+rsint*ivz' \
24   -e 'os=is-rcost/(d*ihn);ol=il-rsint/(d*ivn)' \
25 < -o 'VIEW= -vp ${opx} ${opy} ${opz} -vs ${os} -vl ${ol}' \
27 < | pinterp -vf $pict $piopt -B $pict $zbf
25 > -o 'VIEW= -vp ${opx} ${opy} ${opz} -vs ${os} -vl ${ol}'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines