Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
georefadapter.h
1 #ifndef GEOREFADAPTER_H
2 #define GEOREFADAPTER_H
3 
4 namespace Ilwis {
6 {
7 public:
9  virtual Pixeld adaptBefore(const Pixeld& inPix) const = 0;
10  virtual Pixeld adaptAfter(const Pixeld& inPix) const = 0;
11  virtual ~GeoRefAdapter() {}
12 };
13 
15 public:
16  FactorAdapter(std::vector<double> &offsets, double fac);
17  Pixeld adaptBefore(const Pixeld& inPix) const;
18  Pixeld adaptAfter(const Pixeld& inPix) const;
19 private:
20  std::vector<double> _offsets;
21  double _factor;
22 };
23 
25 public:
26  ScaleRotateAdapter(const std::vector<double>& pivot, const std::vector<double>& targetOffet, double angle, double scale);
27  Pixeld adaptBefore(const Pixeld& inPix) const;
28  Pixeld adaptAfter(const Pixeld& inPix) const;
29 private:
30  std::vector<double> _pivot;
31  std::vector<double> _offset;
32  double _angle;
33  double _scale;
34 };
35 }
36 
37 #endif // GEOREFADAPTER_H