OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNormalizedRemapTable.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Description:
8 //
9 // Contains class declaration for base class ossimNormalizedRemapTable.
10 //
11 //*******************************************************************
12 // $Id: ossimNormalizedRemapTable.h 15742 2009-10-17 12:59:43Z dburken $
13 
14 
15 #ifndef ossimNormalizedRemapTable_HEADER
16 #define ossimNormalizedRemapTable_HEADER
17 
19 
27 {
28 public:
29 
32 
34  virtual ~ossimNormalizedRemapTable();
35 
42  virtual ossim_float64 operator[](ossim_int32 pix) const = 0;
43 
50  virtual ossim_float64 normFromPix(ossim_int32 pix) const = 0;
51 
57  virtual ossim_int32 pixFromNorm(ossim_float64 normPix) const = 0;
58 
63  virtual ossim_int32 getEntries() const = 0;
64 
69  virtual ossim_float64 getNormalizer() const;
70 
71 private:
72 
73  // Forbid copy constructor and asignment operator.
76 
77  };
78 
80 {
81  return static_cast<ossim_float64>(getEntries()-1);
82 }
83 
84 #endif
double ossim_float64
virtual ossim_int32 getEntries() const =0
Pure virtual method to get the number of table entries.
Base class implemetation of normalized remap tables to go to/from normalized value to pixel value...
#define OSSIM_DLL
virtual ossim_float64 getNormalizer() const
Get the value used to normalize and un-normalize table entries.
int ossim_int32