ILSM.hpp
1 #ifndef OPALS_ILSM_HPP_INCLUDED
2 #define OPALS_ILSM_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 
6 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
7  #if defined _DEBUG && !defined OPALS_NO_DEBUG
8  #pragma comment(lib, "opalsLSM_d.lib")
9  #else
10  #pragma comment(lib, "opalsLSM.lib")
11  #endif
12 #endif
13 
14 #include <opals/Vector.hpp>
15 #include <opals/Array.hpp>
16 #include <opals/Path.hpp>
17 #include <opals/LSMProcMode.hpp>
18 #include <opals/LSMTrafoType.hpp>
19 #include <opals/TrafPars3dAffine.hpp>
20 
22 
23 namespace opals {
24 
25  namespace opts
26  {
27  namespace LSM
28  {
29  /// Options of \ref ModuleLSM
30  typedef IGroup< Names::_, false, Cons<
31  ILeaf< Names::inFile, false, ArrayPath2 >, Cons<
32  ILeaf< Names::gridMask, false, ArrayPath2 >, Cons<
33  ILeaf< Names::spotData, false, opals::Path >, Cons<
34  ILeaf< Names::outTrafPars, true, opals::Vector<opals::TrafPars3dAffine> >, Cons<
35  ILeaf< Names::lsmTrafo, false, opals::LSMTrafoType::Type >, Cons<
36  ILeaf< Names::lsmMode, false, opals::LSMProcMode::Type >, Cons<
37  ILeaf< Names::robFactor, false, float >, Cons<
38  ILeaf< Names::patchSize, false, opals::Vector<double> >, Cons<
39  ILeaf< Names::direction, false, opals::Vector<double> >, Cons<
40  ILeaf< Names::maxMemory, false, int >, Cons<
41  ILeaf< Names::maxIter, false, int >
42  > > > > > > > > > > > > Options;
43  }
44  }
45 
46  /// Estimates an affine 3D transformation to align overlapping ALS strip DEMs using Least Squares Matching.
47  /** TODO:
48  More details on opalsLSM */
49  /// \see \ref ModuleLSM
50  class OPALS_API ILSM : virtual public IModuleBase
51  {
52 
53  public:
54  static ILSM* New();
55  static ILSM* New( IControlObject &controlObject );
56  static ILSM* New( const IModuleBase &parent );
57  static ILSM* New( const IModuleBase &parent, IControlObject &controlObject );
58 
59  virtual ~ILSM() {}
60 
61  /// \name Access to module-specific options.
62  ///@{
64  virtual Options& opts() = 0;
65  virtual const Options& opts() const = 0;
66  ///}@
67 
68  };
69 
70 };
71 
72 #endif