IRobFilter.hpp
1 #ifndef OPALS_IROBFILTER_HPP_INCLUDED
2 #define OPALS_IROBFILTER_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 #include <opals/RobustInterpolator.hpp>
6 
7 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
8  #if defined _DEBUG && !defined OPALS_NO_DEBUG
9  #pragma comment(lib, "opalsRobFilter_d.lib")
10  #else
11  #pragma comment(lib, "opalsRobFilter.lib")
12  #endif
13 #endif
14 
15 #include <opals/Path.hpp>
16 #include <opals/Vector.hpp>
17 #include <opals/RobustInterpolator.hpp>
18 
19 namespace opals {
20 
21  namespace opts
22  {
23  namespace RobFilter
24  {
25  /// Options of \ref ModuleRobFilter
26  typedef IGroup< Names::_, false, Cons<
27  ILeaf< Names::inFile, false, opals::Path >, Cons<
28  ILeaf< Names::interpolation, false, opals::RobustInterpolator::Type >, Cons<
29  ILeaf< Names::searchRadius, false, double >, Cons<
30  ILeaf< Names::maxSigma, false, double >, Cons<
31  ILeaf< Names::sigmaApriori, false, opals::String >, Cons<
32  ILeaf< Names::robustWFAdpation, false, opals::String >, Cons<
33  ILeaf< Names::filter, false, opals::String >, Cons<
34  ILeaf< Names::penetration, false, unsigned >, Cons<
35  ILeaf< Names::maxIter, false, unsigned >, Cons<
36  ILeaf< Names::debugOutFile, false, opals::Path >
37  > > > > > > > > > > > Options;
38  }
39  }
40 
41  /// Classification points into terrain and off-terrain using robust interpolation
42  /** The module opalsRobFilter provides a classification of the ALS point cloud (ODM)
43  into terrain and off-terrain points using robust interpolation. */
44  /// \see \ref ModuleRobFilter
45  class OPALS_API IRobFilter : virtual public IModuleBase
46  {
47 
48  public:
49  static IRobFilter* New();
50  static IRobFilter* New( IControlObject &controlObject );
51  static IRobFilter* New( const IModuleBase &parent );
52  static IRobFilter* New( const IModuleBase &parent, IControlObject &controlObject );
53 
54  virtual ~IRobFilter() {}
55 
56  /// \name Access to module-specific options.
57  ///@{
59  virtual Options& opts() = 0;
60  virtual const Options& opts() const = 0;
61  ///}@
62 
63  };
64 
65 };
66 
67 #endif