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/Remap16.c

    r13479 r15925  
    3838  // define the color transform parameters
    3939  MaxValue = graphic[0].Npixels - 1;
    40   if (image[0].range != 0.0) {
    41     slope = graphic[0].Npixels / image[0].range;
    42     start = graphic[0].Npixels * image[0].zero / image[0].range;
     40  if (image[0].image[0].range != 0.0) {
     41    slope = graphic[0].Npixels / image[0].image[0].range;
     42    start = graphic[0].Npixels * image[0].image[0].zero / image[0].image[0].range;
    4343  } else {
    4444    slope = 1.0;
    45     start = image[0].zero;
     45    start = image[0].image[0].zero;
    4646  }
    4747
Note: See TracChangeset for help on using the changeset viewer.