Changeset 3527 in Sophya for trunk/SophyaPI/PI/lut.h


Ignore:
Timestamp:
Oct 12, 2008, 6:57:14 PM (17 years ago)
Author:
ansari
Message:

Suite codage+debug RGB-Colormaps et affichage d'image en couleurs RGB, Reza 12/10/2008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/lut.h

    r3519 r3527  
    4949    return(table[k]);
    5050    }
    51          
     51  inline int  Contraste(int ii)   /* for ApplyRGB */
     52    {
     53    if (ii >= mMaxI) return quantum-1;
     54    if (ii <= mMinI) return 0;
     55    else return ((ii-mMinI)*(quantum-1)/mMaxI);
     56    }     
    5257  int type;
    5358  int nLevel;
     59  int quantum;
    5460  double * bornes;
     61  double mMin, mMax;
     62  int mMinI, mMaxI;
    5563  int tablenbin;
    5664  unsigned short * table;
Note: See TracChangeset for help on using the changeset viewer.