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

Comparing ray/src/px/aedimage.c (file contents):
Revision 1.6 by greg, Fri Jan 5 17:52:49 1990 UTC vs.
Revision 1.9 by greg, Mon Mar 18 09:35:01 1991 UTC

# Line 315 | Line 315 | loopcom()                              /* print pixel values interactively */
315                                  break;
316                          case 'l':
317                          case 'L':
318 <                                printf("%-3gL", bright(cval)*683.0/exposure);
318 >                                printf("%-3gL", luminance(cval)/exposure);
319                                  break;
320                          case 'c':
321                          case 'C':
# Line 400 | Line 400 | register rgbpixel  *l3;
400                                                          /* read scanline */
401          getscan(y);
402                                                          /* convert scanline */
403 <        normcolrs(scanline, xmax);
403 >        normcolrs(scanline, xmax, 0);
404          for (i = 0; i < xmax; i++) {
405                  l3[i].r = scanline[i][RED];
406                  l3[i].g = scanline[i][GRN];
# Line 515 | Line 515 | colormap  map;
515          register int  i, val;
516  
517          for (i = 0; i < 256; i++) {
518 <                val = pow(i/256.0, 1.0/GAMMA) * 256.0;
518 >                val = pow((i+0.5)/256.0, 1.0/GAMMA) * 256.0;
519                  map[0][i] = map[1][i] = map[2][i] = val;
520          }
521   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines