15 #ifndef ossimNormalizedU16RemapTable_HEADER 16 #define ossimNormalizedU16RemapTable_HEADER 97 if(normPix <= 0.0)
return 0;
103 p = ( (p < TABLE_ENTRIES) ? (p >= 0.0 ? p : 0.0) :
getNormalizer());
106 p = ossim::round<ossim_int32>(p);
static ossim_float64 theTable[TABLE_ENTRIES]
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_int32 getEntries() const
Gets the number of table entries.
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.
Base class implemetation of normalized remap tables to go to/from normalized value to pixel value...
virtual ossim_float64 getNormalizer() const
Get the value used to normalize and un-normalize table entries.
virtual ossim_float64 normFromPix(ossim_int32 pix) const
Gets a normalized value (between '0.0' and '1.0') from a pixel value.
virtual ossim_float64 operator[](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 a normalized value (between '0.0' and '1.0') from a pixel value.
static bool theTableIsInitialized
virtual ossim_int32 pixFromNorm(ossim_float64 normPix) const
Returns an pixel value as an int from a normalized value.
Unsigned 16 bit normalized remap table to go to/from normalized value to pixel value.