OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNormalizedU16RemapTable.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Description:
8 //
9 // Contains class definition for ossimNormalizedU16RemapTable.
10 //
11 //*******************************************************************
12 // $Id: ossimNormalizedU16RemapTable.cpp 15743 2009-10-17 13:00:45Z dburken $
13 
15 
18 
19 
22 {
24  {
25  const ossim_int32 ENTRIES = getEntries();
26  const ossim_float64 DENOMINATOR = getNormalizer();
27 
28  //---
29  // Initialize the remap table.
30  //---
31  theTable[0] = 0.0; // Index zero always for null.
32  for (ossim_int32 i = 1; i < ENTRIES; ++i)
33  {
34  theTable[i] = static_cast<ossim_float64>(i)/DENOMINATOR;
35  }
36 
37  theTableIsInitialized = true;
38  }
39 }
40 
42 {}
43 
44 
static ossim_float64 theTable[TABLE_ENTRIES]
ossimNormalizedU16RemapTable()
default constructor
virtual ossim_int32 getEntries() const
Gets the number of table entries.
double ossim_float64
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 ~ossimNormalizedU16RemapTable()
virtual destructor
int ossim_int32