ISegmentation.hpp
1 #pragma once
2 
3 #include <opals/IModuleBase.hpp>
4 #include <DM/IPointIndexLeaf.hpp>
5 #include <opals/Path.hpp>
6 #include <opals/String.hpp>
7 #include <opals/Vector.hpp>
8 #include <opals/SearchMode.hpp>
9 #include <opals/SegmentationMethod.hpp>
10 #include <opals/SegmentSort.hpp>
11 #include <opals/SharedPtr.hpp>
12 #include <opals/ISegmentManager.hpp>
13 
14 #if defined(_MSC_VER) && !defined(OPALS_NO_AUTOLINK)
15 # if defined _DEBUG && !defined OPALS_NO_DEBUG
16 # pragma comment(lib, "opalsSegmentation_d.lib")
17 # else
18 # pragma comment(lib, "opalsSegmentation.lib")
19 # endif
20 #endif
21 
22 namespace opals {
23 
24  namespace opts
25  {
26  /// Options of \ref ModuleSegmentation
27  namespace Segmentation
28  {
29  /// Options of \ref ModuleSegmentation
30  using Options =
31  IGroup< Names::_, false,
41  >,
46  >,
51  >;
52  }
53  }
54 
55  /// Provides methods for point cloud segmentation based on local homogeneity using either a generic region growing approach or an adapted region growing for plane extraction.
56  /** TODO:
57  More details on opalsSegmentation with much more words,
58  possibly on several lines. */
59  /// \see \ref ModuleSegmentation
60  class OPALS_API ISegmentation : virtual public IModuleBase
61  {
62 
63  public:
64  static ISegmentation* New();
65  static ISegmentation* New( IControlObject &controlObject );
66  static ISegmentation* New( const IModuleBase &parent );
67  static ISegmentation* New( const IModuleBase &parent, IControlObject &controlObject );
68 
69  virtual ~ISegmentation() {}
70 
71  /// \name Access to module-specific options.
72  ///@{
74  virtual Options& opts() = 0;
75  virtual const Options& opts() const = 0;
76  ///@}
77 
78  /// \brief Static method for an external calculation of segments for points in a local tree
79  virtual SharedPtr<ISegmentManager> calculateSegments(DM::PointIndexLeafHandle localtree) const = 0;
80  };
81 
82 };
IGroup< Names::_, false, ILeaf< Names::inFile, false, Path >, ILeaf< Names::method, false, SegmentationMethod >, ILeaf< Names::searchRadius, false, Vector< float > >, ILeaf< Names::searchMode, false, SearchMode >, ILeaf< Names::minSegSize, false, unsigned >, ILeaf< Names::filter, false, Vector< String > >, IGroup< Names::condClustering, false, ILeaf< Names::criterion, false, String >, ILeaf< Names::alphaShapeRefPlane, false, Vector< double > > >, IGroup< Names::planeExtraction, false, ILeaf< Names::maxDist, false, double >, ILeaf< Names::maxSigma, false, double >, ILeaf< Names::seedCalculator, false, String > >, ILeaf< Names::alphaRadius, false, double >, ILeaf< Names::sort, false, SegmentSort >, ILeaf< Names::debugOutFile, false, Path >, ILeaf< Names::segments, true, SharedPtr< ISegmentManager > > > Options
Options of Module Segmentation.
Definition: ISegmentation.hpp:51
@ condClustering
Parameter group 'condClustering' containing options for conditional clustering (opalsSegmentation)
Provides methods for point cloud segmentation based on local homogeneity using either a generic regio...
Definition: ISegmentation.hpp:60
Leaf that holds a read-only value.
Definition: IOption.hpp:63
smart pointer class for opals objects
Definition: SharedPtr.hpp:33
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
Abstract base class of all opals modules.
Definition: IModuleBase.hpp:13
Interface for retrieving status and progress information from a module run.
Definition: c++_api/inc/opals/IControlObject.hpp:30
A group of options.
Definition: IOption.hpp:108
@ planeExtraction
Parameter group 'planeExtraction' containing options for planar surface extraction (opalsSegmentation...
Smart pointer class using reference counting with support for DM objects (see ObjectBase)
Definition: Handle.hpp:75