OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
imaging
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
18
#include <
ossim/base/ossimConstants.h
>
19
26
class
OSSIM_DLL
ossimNormalizedRemapTable
27
{
28
public
:
29
31
ossimNormalizedRemapTable
();
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.
74
ossimNormalizedRemapTable
(
const
ossimNormalizedRemapTable
& source);
75
ossimNormalizedRemapTable
& operator=(
const
ossimNormalizedRemapTable
&);
76
77
};
78
79
inline
ossim_float64
ossimNormalizedRemapTable::getNormalizer
()
const
80
{
81
return
static_cast<
ossim_float64
>
(
getEntries
()-1);
82
}
83
84
#endif
ossimConstants.h
ossim_float64
double ossim_float64
Definition:
ossimConstants.h:239
ossimNormalizedRemapTable::getEntries
virtual ossim_int32 getEntries() const =0
Pure virtual method to get the number of table entries.
ossimNormalizedRemapTable
Base class implemetation of normalized remap tables to go to/from normalized value to pixel value...
Definition:
ossimNormalizedRemapTable.h:26
OSSIM_DLL
#define OSSIM_DLL
Definition:
ossimConstants.h:72
ossimNormalizedRemapTable::getNormalizer
virtual ossim_float64 getNormalizer() const
Get the value used to normalize and un-normalize table entries.
Definition:
ossimNormalizedRemapTable.h:79
ossim_int32
int ossim_int32
Definition:
ossimConstants.h:234
Generated on Fri Aug 3 2018 08:46:51 for OSSIM - Open Source Software Image Map by
1.8.14