ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapbias.h
Revision: 2.5
Committed: Tue May 17 17:39:47 2016 UTC (8 years ago) by rschregle
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, rad5R1, HEAD
Changes since 2.4: +3 -2 lines
Log Message:
Initial import of ooC photon map

File Contents

# User Rev Content
1 greg 2.4 /* RCSid $Id: pmapbias.h,v 2.3 2015/08/18 18:45:55 greg Exp $ */
2 rschregle 2.5
3 greg 2.1 /*
4     ==================================================================
5     Bias compensation for photon density estimates
6    
7     For background see:
8     R. Schregle, "Bias Compensation for Photon Maps",
9     Computer Graphics Forum, v22:n4, pp. 729-742, Dec. 2003.
10    
11 rschregle 2.2 Roland Schregle ([email protected])
12     (c) Fraunhofer Institute for Solar Energy Systems
13 greg 2.1 ==================================================================
14    
15 rschregle 2.5 $Id: pmapbias.h,v 2.2 2015/05/08 13:20:22 rschregle Exp $
16 greg 2.1 */
17    
18    
19     #ifndef PMAPBIASCOMP_H
20     #define PMAPBIASCOMP_H
21    
22     #include "pmapdata.h"
23 rschregle 2.5
24 greg 2.1 /* Bias compensation weighting function */
25     /* #define BIASCOMP_WGT(n) 1 */
26     /* #define BIASCOMP_WGT(n) (n) */
27     #define BIASCOMP_WGT(n) ((n) * (n))
28     /* #define BIASCOMP_WGT(n) ((n) * (n) * (n)) */
29     /* #define BIASCOMP_WGT(n) exp(0.003 * (n)) */
30    
31     /* Dump photon bandwidth for bias compensated density estimates */
32     /* #define BIASCOMP_BWIDTH */
33    
34     void biasComp (PhotonMap*, COLOR);
35     /* Photon density estimate with bias compensation, returning irradiance.
36     Expects photons in search queue after a kd-tree lookup. */
37    
38     void volumeBiasComp (PhotonMap*, const RAY*, COLOR);
39     /* Photon volume density estimate with bias compensation, returning
40     irradiance. Expects photons in search queue after a kd-tree lookup. */
41    
42     #endif