IMorph.hpp
1 #pragma once
2 
3 #include <opals/IModuleBase.hpp>
4 #include <opals/Path.hpp>
5 #include <opals/KernelShape.hpp>
6 #include <opals/MorphOperation.hpp>
7 
8 #if defined(_MSC_VER) && !defined(OPALS_NO_AUTOLINK)
9  #if defined _DEBUG && !defined OPALS_NO_DEBUG
10  #pragma comment(lib, "opalsMorph_d.lib")
11  #else
12  #pragma comment(lib, "opalsMorph.lib")
13  #endif
14 #endif
15 
16 namespace opals {
17 
18  namespace opts
19  {
20  /// Options of \ref ModuleMorph
21  namespace Morph
22  {
23  /// Options of \ref ModuleMorph
24  using Options =
25  IGroup< Names::_, false,
32  >;
33  }
34  }
35 
36  /// Applies morphological operations (opening, closing, erosion, dilation) on raster datasets.
37  /** TODO:
38  More details on opalsMorph */
39  /// \see \ref ModuleMorph
40  class OPALS_API IMorph : virtual public IModuleBase
41  {
42 
43  public:
44  static IMorph* New();
45  static IMorph* New( IControlObject &controlObject );
46  static IMorph* New( const IModuleBase &parent );
47  static IMorph* New( const IModuleBase &parent, IControlObject &controlObject );
48 
49  virtual ~IMorph() {}
50 
51  /// \name Access to module-specific options.
52  ///@{
54  virtual Options& opts() = 0;
55  virtual const Options& opts() const = 0;
56  ///@}
57 
58  };
59 
60 };
IGroup< Names::_, false, ILeaf< Names::inFile, false, Path >, ILeaf< Names::outFile, false, Path >, ILeaf< Names::oFormat, false, String >, ILeaf< Names::operation, false, MorphOperation >, ILeaf< Names::kernelShape, false, KernelShape >, ILeaf< Names::kernelSize, false, int > > Options
Options of Module Morph.
Definition: IMorph.hpp:32
Leaf that holds a read-only value.
Definition: IOption.hpp:63
Applies morphological operations (opening, closing, erosion, dilation) on raster datasets.
Definition: IMorph.hpp:40
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