ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/phisto.csh
Revision: 3.4
Committed: Wed Feb 16 05:40:11 2005 UTC (19 years, 2 months ago) by greg
Content type: application/x-csh
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1, rad3R8, rad3R9
Changes since 3.3: +2 -2 lines
Log Message:
Replaced instances of "/usr/tmp" with "/tmp" in scripts & documentation

File Contents

# User Rev Content
1 gwlarson 3.1 #!/bin/csh -f
2 greg 3.4 # RCSid: $Id: phisto.csh,v 3.3 2003/02/22 02:07:27 greg Exp $
3 gwlarson 3.1 #
4     # Compute foveal histogram for picture set
5     #
6 greg 3.4 set tf=/tmp/ph$$
7 gwlarson 3.1 onintr quit
8     if ( $#argv == 0 ) then
9     pfilt -1 -x 128 -y 128 -p 1 \
10     | pvalue -o -h -H -d -b > $tf.dat
11     else
12     rm -f $tf.dat
13     foreach i ( $* )
14     pfilt -1 -x 128 -y 128 -p 1 $i \
15     | pvalue -o -h -H -d -b >> $tf.dat
16     if ( $status ) exit 1
17     end
18     endif
19 gwlarson 3.2 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 gwlarson 3.1 rcalc -e 'L=$1*179;cond=L-1e-7;$1=log10(L)' $tf.dat \
22     | histo $Lmin $Lmax 100
23     quit:
24     rm -f $tf.dat