OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimHistogramEqualization.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 //*************************************************************************
11 // $Id: ossimHistogramEqualization.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimHistogramEqualization_HEADER
13 #define ossimHistogramEqualization_HEADER
15 
17 {
18 public:
24  bool inverseFlag);
25  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
26  ossim_uint32 resLevel=0);
27 
29  virtual bool setHistogram(const ossimFilename& filename);
30 
31  virtual bool getInverseFlag()const;
32  virtual void initialize();
33  virtual void setInverseFlag(bool inverseFlag);
34 
35  virtual bool loadState(const ossimKeywordlist& kwl,
36  const char* prefix=NULL);
37  virtual bool saveState(ossimKeywordlist& kwl,
38  const char* prefix=NULL)const;
39 
40  virtual std::ostream& print(std::ostream& out) const;
41 
42 protected:
43  virtual ~ossimHistogramEqualization();
44 
48  void allocate();
49 
56 
71  vector<double*> theForwardLut;
72 
77  vector<double*> theInverseLut;
78 
79 
80  std::vector<ossim_uint32> theBandList;
81  virtual void computeAccumulationHistogram();
82 
83  template<class T>
84  ossimRefPtr<ossimImageData> runEqualizationAlgorithm(T dummyVariable,
86 
94  virtual void initializeLuts();
95  virtual void deleteLuts();
96 
98 };
99 #endif /* #ifndef ossimHistogramEqualization_HEADER */
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
ossimRefPtr< ossimMultiResLevelHistogram > theAccumulationHistogram
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
virtual void setHistogram(ossimRefPtr< ossimMultiResLevelHistogram > histogram)
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=NULL) const
Method to save the state of an object to a keyword list.
std::vector< ossim_uint32 > theBandList
ossimRefPtr< ossimImageData > theTile
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)