ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdfrep.h
(Generate patch)

Comparing ray/src/cv/bsdfrep.h (file contents):
Revision 2.6 by greg, Thu Nov 8 00:31:17 2012 UTC vs.
Revision 2.7 by greg, Wed Mar 20 01:00:22 2013 UTC

# Line 69 | Line 69 | extern int             single_plane_incident;
69   extern int              input_orient;
70   extern int              output_orient;
71  
72 +                                /* log BSDF histogram */
73 + #define HISTLEN         256
74 + #define BSDF2BIG        (1./M_PI)
75 + #define BSDF2SML        1e-8
76 + #define HISTLNR         17.2759509              /* log(BSDF2BIG/BSDF2SML) */
77 + extern int              bsdf_hist[HISTLEN];
78 + #define histndx(v)      (int)(log((v)*(1./BSDF2SML))*(HISTLEN/HISTLNR))
79 + #define histval(i)      (exp(((i)+.5)*(HISTLNR/HISTLEN))*BSDF2SML)
80 +
81 +                                /* BSDF value for boundary regions */
82 + extern double           bsdf_min;
83 +
84                                  /* processed incident DSF measurements */
85   extern RBFNODE          *dsf_list;
86  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines