IICP.hpp
1 #ifndef OPALS_IICP_HPP_INCLUDED
2 #define OPALS_IICP_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, "opalsICP_d.lib")
9  #else
10  #pragma comment(lib, "opalsICP.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/TrafPars3dAffine.hpp>
17 #include <opals/LSMTrafoType.hpp>
18 
22 
23 namespace opals {
24 
25  namespace opts
26  {
27  namespace ICP
28  {
29  /// Options of \ref ModuleICP
30  typedef IGroup< Names::_, false, Cons<
31  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
32  ILeaf< Names::redPoint, false, ArrayD3 >, Cons<
33  ILeaf< Names::filter, false, opals::String >, Cons<
34  ILeaf< Names::outDirectory, false, opals::Path >, Cons<
35  ILeaf< Names::tempDirectory, false, opals::Path >, Cons<
36  ILeaf< Names::trafoType, false, opals::LSMTrafoType::Type >, Cons<
37  ILeaf< Names::fixedFile, false, opals::Vector<opals::Path> >, Cons<
38  ILeaf< Names::voxelSize, false, double >, Cons<
39  ILeaf< Names::samplingDist, false, opals::Vector<double> >, Cons<
40  ILeaf< Names::searchRadius, false, double >, Cons<
41  ILeaf< Names::maxIter, false, int >, Cons<
42  ILeaf< Names::subsetRadius, false, double >, Cons<
43  ILeaf< Names::maxDist, false, double >, Cons<
44  ILeaf< Names::maxSigma, false, double >, Cons<
45  ILeaf< Names::maxAngleDev, false, double >, Cons<
46  ILeaf< Names::normalSpaceSampling, false, double >, Cons<
47  ILeaf< Names::maxLeverageSampling, false, double >, Cons<
48  ILeaf< Names::plot, false, bool >, Cons<
49  ILeaf< Names::transformData, false, bool >, Cons<
50  ILeaf< Names::outTrafPars, true, VectorTrafPars >
51  > > > > > > > > > > > > > > > > > > > > > Options;
52  }
53  }
54 
55  /// Performs orientation (co-registration) of multiple point cloud datasets using the Iterative Closest Point algorithm.
56  /** TODO:
57  More details on opalsICP with much more words,
58  possibly on several lines. */
59  /// \see \ref ModuleICP
60  class OPALS_API IICP : virtual public IModuleBase
61  {
62 
63  public:
64  static IICP* New();
65  static IICP* New( IControlObject &controlObject );
66  static IICP* New( const IModuleBase &parent );
67  static IICP* New( const IModuleBase &parent, IControlObject &controlObject );
68 
69  virtual ~IICP() {}
70 
71  /// \name Access to module-specific options.
72  ///@{
74  virtual Options& opts() = 0;
75  virtual const Options& opts() const = 0;
76  ///}@
77 
78  };
79 
80 };
81 
82 #endif