OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimBlendMosaic.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: ossimBlendMosaic.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimBlendMosaic_HEADER
13 #define ossimBlendMosaic_HEADER
15 
17 {
18 public:
21  virtual ~ossimBlendMosaic();
22  virtual void initialize();
23 
24  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& origin,
25  ossim_uint32 resLevel=0);
30  virtual bool saveState(ossimKeywordlist& kwl,
31  const char* prefix=NULL)const;
32 
37  virtual bool loadState(const ossimKeywordlist& kwl,
38  const char* prefix=NULL);
39 
40  void setWeight(ossim_uint32 index, double weight);
41  void setWeights(const std::vector<double>& weights);
42 
43  double getWeight(ossim_uint32 index) const;
44  const std::vector<double>& getWeights()const;
45 
46 
47  void setNumberOfWeights(ossim_uint32 numberOfWeights);
48  void setAllWeightsTo(double value);
49 
54  void normalizeWeights();
55  void findMinMax(double& minValue, double& maxValue)const;
56 
57 protected:
58  vector<double> theWeights;
67  template <class T>
69  const ossimIrect& tileRect,
70  ossim_uint32);
71  template <class T>
73  const ossimIrect& tileRect,
74  ossim_uint32);
76 };
77 
78 #endif /* #ifndef ossimBlendMosaic_HEADER */
ossimRefPtr< ossimImageData > theNormResult
#define OSSIMDLLEXPORT
ossimRefPtr< ossimImageData > combineNorm(T, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
Represents serializable keyword/value map.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &origin, ossim_uint32 resLevel=0)
An image mosaic is a simple combiner that will just do a simple mosaic.
virtual void initialize()
std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
ossimRefPtr< ossimImageData > combine(T, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
vector< double > theWeights
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
unsigned int ossim_uint32
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.