1 |
|
#!/bin/csh -f |
2 |
< |
# SCCSid "$SunId$ SGI" |
2 |
> |
# RCSid: $Id$ |
3 |
|
# |
4 |
|
# Compute foveal histogram for picture set |
5 |
|
# |
6 |
< |
set tf=/usr/tmp/ph$$ |
6 |
> |
set tf=/tmp/ph$$ |
7 |
|
onintr quit |
8 |
|
if ( $#argv == 0 ) then |
9 |
|
pfilt -1 -x 128 -y 128 -p 1 \ |
16 |
|
if ( $status ) exit 1 |
17 |
|
end |
18 |
|
endif |
19 |
< |
set Lmin=`total -l $tf.dat | rcalc -e 'L=$1*179;$1=if(L-1e-7,log10(L),-7)'` |
20 |
< |
set Lmax=`total -u $tf.dat | rcalc -e '$1=log10($1*179)'` |
19 |
> |
set Lmin=`total -l $tf.dat | rcalc -e 'L=$1*179;$1=if(L-1e-7,log10(L)-.01,-7)'` |
20 |
> |
set Lmax=`total -u $tf.dat | rcalc -e '$1=log10($1*179)+.01'` |
21 |
|
rcalc -e 'L=$1*179;cond=L-1e-7;$1=log10(L)' $tf.dat \ |
22 |
|
| histo $Lmin $Lmax 100 |
23 |
|
quit: |