15 #ifndef ossimNormalizedS16RemapTable_HEADER 16 #define ossimNormalizedS16RemapTable_HEADER 39 TABLE_ENTRIES = 65536,
40 OFFSET_TO_ZERO = 32768,
102 result = (p < TABLE_ENTRIES ? ( p >= 0 ?
theTable[p] : 0.0) : 1.0);
115 result = (p < TABLE_ENTRIES ? ( p >= 0 ?
theTable[p] : 0.0) : 1.0);
126 ossim_float64 p = (normPix<1.0) ? ( (normPix>0.0) ? normPix : 0.0) : 1.0;
virtual ossim_float64 normFromPix(ossim_int32 pix) const =0
Gets a normalized value (between '0.0' and '1.0') from a pixel value.
virtual ossim_float64 operator[](ossim_int32 pix) const
Gets normalized value (between '0.0' and '1.0') from an int which should in scalar range of a signed ...
Signed 16 bit normalized remap tables to go to/from normalized value to pixel value.
virtual ossim_int32 getEntries() const
Gets the number of table entries.
static bool theTableIsInitialized
virtual ossim_int32 getEntries() const =0
Pure virtual method to get the number of table entries.
virtual ossim_int32 pixFromNorm(ossim_float64 normPix) const =0
Returns an pixel value as an int from a normalized value.
virtual ossim_int32 pixFromNorm(ossim_float64 normPix) const
Gets pixel value from normalized value.
Base class implemetation of normalized remap tables to go to/from normalized value to pixel value...
virtual ossim_float64 normFromPix(ossim_int32 pix) const
Gets normalized value (between '0.0' and '1.0') from an int which should in scalar range of a signed ...
virtual ossim_float64 getNormalizer() const
Get the value used to normalize and un-normalize table entries.
static ossim_float64 theTable[TABLE_ENTRIES]
virtual ossim_float64 operator[](ossim_int32 pix) const =0
Gets a normalized value (between '0.0' and '1.0') from a pixel value.