Loading [MathJax]/jax/output/HTML-CSS/config.js
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::_,
41  >,
47  >,
52  >;
53  }
54  }
55 
56  /// 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.
57  /** TODO:
58  More details on opalsSegmentation with much more words,
59  possibly on several lines. */
60  /// \see \ref ModuleSegmentation
61  class OPALS_API ISegmentation : virtual public IModuleBase
62  {
63 
64  public:
65  static ISegmentation* New();
66  static ISegmentation* New( IControlObject &controlObject );
67  static ISegmentation* New( const IModuleBase &parent );
68  static ISegmentation* New( const IModuleBase &parent, IControlObject &controlObject );
69 
70  virtual ~ISegmentation() {}
71 
72  /// \name Access to module-specific options.
73  ///@{
75  Options& opts() override = 0;
76  const Options& opts() const override = 0;
77  ///@}
78 
79  /// \brief Static method for an external calculation of segments for points in a local tree
80  virtual SharedPtr<ISegmentManager> calculateSegments(DM::PointIndexLeafHandle localtree) const = 0;
81  };
82 
83 };
IGroup< Names::_, IValue< Names::inFile, false, Path >, IValue< Names::method, false, SegmentationMethod >, IValue< Names::searchRadius, false, Vector< float > >, IValue< Names::searchMode, false, SearchMode >, IValue< Names::minSegSize, false, unsigned >, IValue< Names::filter, false, Vector< String > >, IGroup< Names::condClustering, IValue< Names::criterion, false, String >, IValue< Names::alphaShapeRefPlane, false, Vector< double > > >, IGroup< Names::planeExtraction, IValue< Names::maxDist, false, double >, IValue< Names::maxSigma, false, double >, IValue< Names::seedCalculator, false, String >, IValue< Names::refinePlanes, false, bool > >, IValue< Names::alphaRadius, false, double >, IValue< Names::sort, false, SegmentSort >, IValue< Names::byproduct, false, Path >, IValue< Names::segments, true, SharedPtr< ISegmentManager > > > Options
Options of Module Segmentation.
Definition: ISegmentation.hpp:52
@ condClustering
Parameter group 'condClustering' containing options for conditional clustering (opalsSegmentation)
A leaf that holds a value.
Definition: IOption.hpp:62
Provides methods for point cloud segmentation based on local homogeneity using either a generic regio...
Definition: ISegmentation.hpp:61
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:136
@ 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