OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimValueAssignImageSourceFilter.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: ossimValueAssignImageSourceFilter.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimValueAssignImageSourceFilter_HEADER
13 #define ossimValueAssignImageSourceFilter_HEADER
14 
16 
43 {
44 public:
46  {
47  ossimValueAssignType_SEPARATE = 1,
48  ossimValueAssignType_GROUP = 2
49  };
50 
52  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
53  ossim_uint32 resLevel=0);
54 
55  void setInputOutputValues(const vector<double>& inputValues,
56  const vector<double>& outputValues);
57 
58  const vector<double>& getInputValues()const;
59  const vector<double>& getOutputValues()const;
60  ossimValueAssignType getValueAssignType()const;
61  void setValueAssignType(ossimValueAssignType type);
62 
63  virtual void initialize();
64 
65  virtual bool saveState(ossimKeywordlist& kwl,
66  const char* prefix=NULL)const;
67 
72  virtual bool loadState(const ossimKeywordlist& kwl,
73  const char* prefix=NULL);
74 
75 protected:
77 
81  void allocate();
82 
83  vector<double> theInputValueArray;
84  vector<double> theOutputValueArray;
87 
88  void validateArrays();
89 
90  template <class T>
91  void executeAssign(T, ossimRefPtr<ossimImageData>& data);
92 
93  template <class T>
94  void executeAssignSeparate(T, ossimRefPtr<ossimImageData>& data);
95 
96  template <class T>
97  void executeAssignGroup(T, ossimRefPtr<ossimImageData>& data);
98 
100 };
101 
102 #endif /* #ifndef ossimValueAssignImageSourceFilter_HEADER */
This allows one to assign a value to a group of bands.
#define OSSIMDLLEXPORT
Represents serializable keyword/value map.
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)