OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGammaRemapper.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 //
12 // Gamma remapper.
13 //
14 //*************************************************************************
15 // $Id: ossimGammaRemapper.h 15766 2009-10-20 12:37:09Z gpotts $
16 #ifndef ossimGammaRemapper_HEADER
17 #define ossimGammaRemapper_HEADER
18 
20 
22 {
23 public:
24 
25  ossimGammaRemapper(ossimObject* owner=NULL);
27  ossimGammaRemapper(ossimObject* owner, ossimImageSource* inputSource);
28 
29 
30  virtual ossimString getShortName()const;
31 
32  virtual void initialize();
33 
34  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tile_rect,
35  ossim_uint32 resLevel=0);
36 
41  virtual bool loadState(const ossimKeywordlist& kwl,
42  const char* prefix=0);
43 
44  virtual ostream& print(ostream& os) const;
45  friend ostream& operator<< (ostream& os, const ossimGammaRemapper& hr);
46 
47  void setMinMaxPixelValues(const vector<double>& v_min,
48  const vector<double>& v_max);
49 
50  virtual void enableSource();
51 
52 protected:
53  virtual ~ossimGammaRemapper();
54 
59  void verifyEnabled();
60 
62  double* theBuffer;
63  vector<double> theMinPixelValue;
64  vector<double> theMaxPixelValue;
65  vector<double> theGamma;
67 
68  TYPE_DATA
69 };
70 
71 #endif /* #ifndef ossimGammaRemapper_HEADER */
virtual ostream & print(ostream &os) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
Represents serializable keyword/value map.
vector< double > theGamma
ossimGammaRemapper(ossimObject *owner=NULL)
vector< double > theMinPixelValue
void setMinMaxPixelValues(const vector< double > &v_min, const vector< double > &v_max)
#define TYPE_DATA
Definition: ossimRtti.h:339
vector< double > theMaxPixelValue
unsigned int ossim_uint32
virtual void enableSource()
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tile_rect, ossim_uint32 resLevel=0)
virtual ossimString getShortName() const
ossimRefPtr< ossimImageData > theTile
friend ostream & operator<<(ostream &os, const ossimGammaRemapper &hr)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)