IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 6, 2008, 1:41:58 PM (19 years ago)
Author:
eugene
Message:

updates from eam_branch_20071222 : new 3D color map and multiple channels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/Remap24.c

    r13479 r16011  
    4040  // define the color transform parameters
    4141  MaxValue = graphic[0].Npixels - 1;
    42   if (image[0].range != 0.0) {
    43     slope = graphic[0].Npixels / image[0].range;
    44     start = graphic[0].Npixels * image[0].zero / image[0].range;
     42  if (image[0].image[0].range != 0.0) {
     43    slope = graphic[0].Npixels / image[0].image[0].range;
     44    start = graphic[0].Npixels * image[0].image[0].zero / image[0].image[0].range;
    4545  } else {
    4646    slope = 1.0;
    47     start = image[0].zero;
     47    start = image[0].image[0].zero;
    4848  }
    4949
Note: See TracChangeset for help on using the changeset viewer.