OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimWavelength.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 // Author: David Burken
8 //
9 // Description: Class declaration for ossimWavelength.
10 // See class description below.
11 //
12 //----------------------------------------------------------------------------
13 // $Id$
14 
15 #ifndef ossimWavelength_HEADER
16 #define ossimWavelength_HEADER 1
17 
19 #include <iostream>
20 #include <map>
21 #include <vector>
22 
23 
25 
35 {
36 public:
37 
38  typedef std::map< ossim_float64, ossim_uint32 > WavelengthMap;
39 
42 
44  ossimWavelength( const ossimWavelength& obj );
45 
47  const ossimWavelength& operator=( const ossimWavelength& rhs );
48 
50  ~ossimWavelength();
51 
52  const ossimWavelength::WavelengthMap& getMap() const;
53 
55 
65  bool initialize( const ossimEnviHeader& hdr );
66 
73  WavelengthMap::const_iterator findClosestIterator(
74  const ossim_float64& requestedWavelength,
75  const ossim_float64& thresholdFromCenter ) const;
76 
83  ossim_int32 findClosestIndex(
84  const ossim_float64& requestedWavelength,
85  const ossim_float64& thresholdFromCenter ) const;
86 
93  bool getRgbBands( std::vector<ossim_uint32>& bands ) const;
94 
96  WavelengthMap::const_iterator end() const;
97 
99  WavelengthMap::iterator end();
100 
101 private:
102 
104 };
105 
106 #endif /* End of "#ifndef ossimWavelength_HEADER" */
double ossim_float64
#define OSSIM_DLL
Class for reading and writing an ENVI (The Environment for Visualizing Images) header file...
WavelengthMap m_map
int ossim_int32
std::map< ossim_float64, ossim_uint32 > WavelengthMap