OTB  9.0.0
Orfeo Toolbox
otbGeometricMomentPathFunction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbGeometricMomentPathFunction_h
22 #define otbGeometricMomentPathFunction_h
23 
24 #include "otbPathFunction.h"
25 
26 namespace otb
27 {
28 
38 template <class TInputPath, class TOutput, class TPrecision = double>
39 class ITK_EXPORT GeometricMomentPathFunction : public PathFunction<TInputPath, TOutput>
40 {
41 public:
45  typedef itk::SmartPointer<Self> Pointer;
46  typedef itk::SmartPointer<const Self> ConstPointer;
47 
50 
52  typedef typename Superclass::InputPathType PathType;
53  typedef typename Superclass::InputPathConstPointer PathConstPointer;
54 
56  typedef typename Superclass::OutputType OutputType;
57 
59  typedef TPrecision PrecisionType;
60 
61 protected:
64  {
65  }
66  void PrintSelf(std::ostream& os, itk::Indent indent) const override
67  {
68  Superclass::PrintSelf(os, indent);
69  }
70 
71 private:
72  GeometricMomentPathFunction(const Self&) = delete;
73  void operator=(const Self&) = delete;
74 };
75 
76 } // namespace otb
77 
78 #endif
otb::GeometricMomentPathFunction::Superclass
PathFunction< TInputPath, TOutput > Superclass
Definition: otbGeometricMomentPathFunction.h:44
otb::GeometricMomentPathFunction::OutputType
Superclass::OutputType OutputType
Definition: otbGeometricMomentPathFunction.h:56
otb::PathFunction
Evaluates a function of an image over a specific path.
Definition: otbPathFunction.h:48
otb::GeometricMomentPathFunction::GeometricMomentPathFunction
GeometricMomentPathFunction()
Definition: otbGeometricMomentPathFunction.h:62
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::GeometricMomentPathFunction::PathType
Superclass::InputPathType PathType
Definition: otbGeometricMomentPathFunction.h:49
otb::GeometricMomentPathFunction::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbGeometricMomentPathFunction.h:46
otb::GeometricMomentPathFunction::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbGeometricMomentPathFunction.h:66
otb::GeometricMomentPathFunction::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbGeometricMomentPathFunction.h:45
otb::GeometricMomentPathFunction::PrecisionType
TPrecision PrecisionType
Definition: otbGeometricMomentPathFunction.h:59
otb::GeometricMomentPathFunction
Virtual class for the Geometric moments for an path function.
Definition: otbGeometricMomentPathFunction.h:39
otbPathFunction.h
otb::GeometricMomentPathFunction::~GeometricMomentPathFunction
~GeometricMomentPathFunction() override
Definition: otbGeometricMomentPathFunction.h:63
otb::GeometricMomentPathFunction::PathConstPointer
Superclass::InputPathConstPointer PathConstPointer
Definition: otbGeometricMomentPathFunction.h:53
otb::GeometricMomentPathFunction::Self
GeometricMomentPathFunction Self
Definition: otbGeometricMomentPathFunction.h:43