ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcond3.c
(Generate patch)

Comparing ray/src/px/pcond3.c (file contents):
Revision 3.8 by greg, Wed Jan 29 13:22:13 1997 UTC vs.
Revision 3.9 by greg, Fri Apr 11 18:34:39 1997 UTC

# Line 107 | Line 107 | comphist()                     /* create foveal sampling histogram */
107                          if (l < lwmin) lwmin = l;
108                          if (l > lwmax) lwmax = l;
109                  }
110 <        lwmin -= FTINY;
111 <        lwmax += FTINY;
112 <        if (lwmin < LMIN) lwmin = LMIN;
113 <        if (lwmax > LMAX) lwmax = LMAX;
114 <        bwmin = Bl(lwmin);
110 >        lwmax *= 1.01;
111 >        if (lwmax > LMAX)
112 >                lwmax = LMAX;
113          bwmax = Bl(lwmax);
114 +        if (lwmin < LMIN) {
115 +                lwmin = LMIN;
116 +                bwmin = Bl(LMIN);
117 +        } else {                        /* duplicate bottom bin */
118 +                bwmin = bwmax - (bwmax-Bl(lwmin))*HISTRES/(HISTRES-1);
119 +                lwmin = Lb(bwmin);
120 +        }
121                                          /* (re)compute histogram */
122          bwavg = 0.;
123          histot = 0.;
# Line 148 | Line 153 | comphist()                     /* create foveal sampling histogram */
153                  }
154          }
155          bwavg /= histot;
156 +        if (lwmin > LMIN+FTINY) {       /* add false samples at bottom */
157 +                bwhist[1] *= 0.5;
158 +                bwhist[0] += bwhist[1];
159 +        }
160   }
161  
162  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines