IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2007, 5:47:04 PM (19 years ago)
Author:
eugene
Message:

lots of work to add in multiple channels, blinking, working to 3D colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071222/Ohana/src/kapa2/src/JPEGit24.c

    r14590 r15925  
    8484  // define the color transform parameters
    8585  MaxValue = graphic[0].Npixels - 1;
    86   if (image[0].range != 0.0) {
    87     slope = graphic[0].Npixels / image[0].range;
    88     start = graphic[0].Npixels * image[0].zero / image[0].range;
     86  if (image[0].image[0].range != 0.0) {
     87    slope = graphic[0].Npixels / image[0].image[0].range;
     88    start = graphic[0].Npixels * image[0].image[0].zero / image[0].image[0].range;
    8989  } else {
    9090    slope = 1.0;
    91     start = image[0].zero;
     91    start = image[0].image[0].zero;
    9292  }
    9393
     
    108108  dx = image[0].picture.dx;
    109109  dy = image[0].picture.dy;
    110   DX = image[0].matrix.Naxis[0];
    111   DY = image[0].matrix.Naxis[1];
     110  DX = image[0].image[0].matrix.Naxis[0];
     111  DY = image[0].image[0].matrix.Naxis[1];
    112112
    113113  /* X,Y are the image coordinates of the first image pixel */
     
    145145  ALLOCATE (line_buffer, JSAMPLE, 3*dx);
    146146
    147   imdata = (float *) image[0].matrix.buffer;
     147  imdata = (float *) image[0].image[0].matrix.buffer;
    148148  in_pix_ref = &imdata[DX*(int)MAX(Y,0) + (int)MAX(X,0)];
    149149
Note: See TracChangeset for help on using the changeset viewer.