OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAtCorrRemapper.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2002 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Kathy Minear
9 //
10 // Description:
11 // Takes in DNs for any number of bands
12 // Converts DNs to Radiance at the satellite values Lsat
13 // Converts Lsat to Surface Reflectance values
14 //
15 //*************************************************************************
16 // $Id: ossimAtCorrRemapper.h 15766 2009-10-20 12:37:09Z gpotts $
17 #ifndef ossimAtCorrRemapper_HEADER
18 #define ossimAtCorrRemapper_HEADER
19 
21 
23 {
24 public:
25 
26  ossimAtCorrRemapper(ossimObject* owner = NULL,
27  ossimImageSource* inputSource = NULL,
28  const ossimString& sensorType = "");
29 
30 
31  virtual ossimString getShortName() const;
32 
33  virtual void initialize();
34 
35  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tile_rect,
36  ossim_uint32 resLevel=0);
37 
42  virtual bool loadState(const ossimKeywordlist& kwl,
43  const char* prefix=0);
44 
45  virtual ostream& print(ostream& os) const;
46  friend ostream& operator << (ostream& os, const ossimAtCorrRemapper& hr);
47 
48  vector<double> getNormMinPixelValues() const;
49  vector<double> getNormMaxPixelValues() const;
50 
51  void getNormMinPixelValues(vector<double>& v) const;
52  void getNormMaxPixelValues(vector<double>& v) const;
53 
54  const ossimString& getSensorType() const;
55 
56  void setSensorType(const ossimString& sensorType);
57 
58 protected:
59  virtual ~ossimAtCorrRemapper();
60 
64  void verifyEnabled();
65  virtual void interpolate(const ossimDpt& pt,
66  int band,
67  double& a,
68  double& b,
69  double& c)const;
70 
74  vector<double> theMinPixelValue;
75  vector<double> theMaxPixelValue;
76  vector<double> theXaArray;
77  vector<double> theXbArray;
78  vector<double> theXcArray;
79  vector<double> theBiasArray;
80  vector<double> theGainArray;
81  vector<double> theCalCoefArray;
82  vector<double> theBandWidthArray;
84 
86 };
87 
88 #endif /* #ifndef ossimAtCorrRemapper_HEADER */
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tile_rect, ossim_uint32 resLevel=0)
friend ostream & operator<<(ostream &os, const ossimAtCorrRemapper &hr)
vector< double > theXcArray
virtual ostream & print(ostream &os) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
Represents serializable keyword/value map.
const ossimString & getSensorType() const
vector< double > theGainArray
vector< double > getNormMinPixelValues() const
virtual ossimString getShortName() const
vector< double > theMinPixelValue
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual void interpolate(const ossimDpt &pt, int band, double &a, double &b, double &c) const
vector< double > theBandWidthArray
vector< double > theXaArray
vector< double > theXbArray
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
ossimRefPtr< ossimImageData > theTile
ossimAtCorrRemapper(ossimObject *owner=NULL, ossimImageSource *inputSource=NULL, const ossimString &sensorType="")
vector< double > theCalCoefArray
vector< double > theBiasArray
void setSensorType(const ossimString &sensorType)
vector< double > getNormMaxPixelValues() const
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
vector< double > theMaxPixelValue