ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/sf.cal
Revision: 1.2
Committed: Wed Nov 21 18:10:45 2018 UTC (5 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R3, HEAD
Changes since 1.1: +1 -0 lines
Log Message:
Added missing RCSid tag

File Contents

# User Rev Content
1 greg 1.2 { RCSid $Id$ }
2 greg 1.1 {
3     Calculation of contrast-based scalefactor
4    
5     8/17/93
6    
7     Input: ex = picture exposure
8     or: Lwa = world adaptation luminance
9     Output: sf = scalefactor for display
10     adj = corresponding exposure adjustment
11    
12     Optional Inputs: Ldmax = maximum display luminance
13     Lda = display adaptation luminance
14     }
15     Lwa = WE*.5/ex;
16     Ldmax = 120;
17     Lda = Ldmax/2;
18    
19     sf = ((1.219 + Lda^.4)/(1.219 + Lwa^.4))^2.5 / Ldmax;
20    
21     adj = WE*sf/ex;