OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNormalizedU12RemapTable.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 ossimNormalizedU12RemapTable.
10 //
11 //*******************************************************************
12 // $Id: ossimNormalizedU12RemapTable.cpp 15743 2009-10-17 13:00:45Z dburken $
13 
15 
18 
21 {
23  {
24  const ossim_int32 ENTRIES = getEntries();
25  const ossim_float64 DENOMINATOR = getNormalizer();
26 
27  //---
28  // Initialize the remap table.
29  //---
30  theTable[0] = 0.0; // Index zero always for null.
31  for (ossim_int32 i = 1; i < ENTRIES; ++i)
32  {
33  theTable[i] = static_cast<ossim_float64>(i)/DENOMINATOR;
34  }
35 
36  theTableIsInitialized = true;
37  }
38 }
39 
41 {}
virtual ossim_int32 getEntries() const
Gets the number of table entries.
static ossim_float64 theTable[TABLE_ENTRIES]
double ossim_float64
virtual ~ossimNormalizedU12RemapTable()
virtual destructor
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.
int ossim_int32
ossimNormalizedU12RemapTable()
default constructor