ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapbias.h
Revision: 2.1
Committed: Tue Feb 24 19:39:26 2015 UTC (9 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
Log Message:
Initial check-in of photon map addition by Roland Schregle

File Contents

# User Rev Content
1 greg 2.1 /*
2     ==================================================================
3     Bias compensation for photon density estimates
4    
5     For background see:
6     R. Schregle, "Bias Compensation for Photon Maps",
7     Computer Graphics Forum, v22:n4, pp. 729-742, Dec. 2003.
8    
9     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
10     (c) Fraunhofer Institute for Solar Energy Systems,
11     Lucerne University of Applied Sciences & Arts
12     ==================================================================
13    
14     $Id: pmapbias.h,v 1.3 2014/09/24 09:36:16 taschreg Exp $
15     */
16    
17    
18     #ifndef PMAPBIASCOMP_H
19     #define PMAPBIASCOMP_H
20    
21     #include "pmapdata.h"
22    
23     /* Bias compensation weighting function */
24     /* #define BIASCOMP_WGT(n) 1 */
25     /* #define BIASCOMP_WGT(n) (n) */
26     #define BIASCOMP_WGT(n) ((n) * (n))
27     /* #define BIASCOMP_WGT(n) ((n) * (n) * (n)) */
28     /* #define BIASCOMP_WGT(n) exp(0.003 * (n)) */
29    
30     /* Dump photon bandwidth for bias compensated density estimates */
31     /* #define BIASCOMP_BWIDTH */
32    
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