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

Comparing ray/src/common/falsecolor.c (file contents):
Revision 3.6 by greg, Thu Jan 26 03:13:36 2006 UTC vs.
Revision 3.7 by greg, Thu Jan 26 03:33:16 2006 UTC

# Line 170 | Line 170 | fcIsLogMap(FCstruct *fcs)
170          if (fcs == NULL || fcs->lumap == NULL)
171                  return(-1);
172          
173 <        miderr = fcs->lumap[(fcs->mbrmax - fcs->mbrmin)/2] -
174 <                        128L * (fcs->mbrmax - fcs->mbrmin) /
175 <                                (fcs->mbrmax - fcs->mbrmin + 1);
173 >        miderr = (fcs->mbrmax - fcs->mbrmin)/2;
174 >        miderr = fcs->lumap[miderr] -
175 >                        256L * miderr / (fcs->mbrmax - fcs->mbrmin + 1);
176  
177          return((-1 <= miderr) & (miderr <= 1));
178   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines