IConvolution.hpp
1 #ifndef OPALS_ICONVOLUTION_HPP_INCLUDED
2 #define OPALS_ICONVOLUTION_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 #include <opals/String.hpp>
6 #include <opals/Path.hpp>
7 #include <opals/EdgeHandling.hpp>
8 #include <opals/ConvolutionKernel.hpp>
9 #include <opals/GridLimit.hpp>
10 
11 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
12  #if defined _DEBUG && !defined OPALS_NO_DEBUG
13  #pragma comment(lib, "opalsConvolution_d.lib")
14  #else
15  #pragma comment(lib, "opalsConvolution.lib")
16  #endif
17 #endif
18 
19 namespace opals {
20 
21  namespace opts
22  {
23  namespace Convolution
24  {
25  /// Options of \ref ModuleConvolution
26  typedef IGroup< Names::_, false, Cons<
27  ILeaf< Names::inFile, false, opals::Path >, Cons<
28  ILeaf< Names::outFile, false, opals::Path >, Cons<
29  ILeaf< Names::oFormat, false, opals::String >, Cons<
30  ILeaf< Names::kernel, false, opals::ConvolutionKernel >, Cons<
31  ILeaf< Names::edgeHandling, false, opals::EdgeHandling::Type >, Cons<
32  ILeaf< Names::ignoreNoData, false, bool >, Cons<
33  ILeaf< Names::normalize, false, bool >, Cons<
34  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
35  ILeaf< Names::noData, false, float >, Cons<
36  ILeaf< Names::gridSize, false, int >
37  > > > > > > > > > > > Options;
38  }
39  }
40 
41  /// Performs convolutional filtering operations on a raster image.
42  /** TODO:
43  More details on opalsConv with much more words,
44  possibly on several lines. */
45  /// \see \ref ModuleConvolution
46  class OPALS_API IConvolution : virtual public IModuleBase
47  {
48 
49  public:
50  static IConvolution* New();
51  static IConvolution* New( IControlObject &controlObject );
52  static IConvolution* New( const IModuleBase &parent );
53  static IConvolution* New( const IModuleBase &parent, IControlObject &controlObject );
54 
55  virtual ~IConvolution() {}
56 
57  /// \name Access to module-specific options.
58  ///@{
60  virtual Options& opts() = 0;
61  virtual const Options& opts() const = 0;
62  ///}@
63 
64  };
65 
66 };
67 
68 #endif