OTB  9.0.0
Orfeo Toolbox
otbRealMomentPathFunction.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 otbRealMomentPathFunction_h
22 #define otbRealMomentPathFunction_h
23 
25 #include "itkVectorContainer.h"
26 
27 namespace otb
28 {
29 
39 template <class TInputPath, class TOutput = double, class TPrecision = double>
40 class ITK_EXPORT RealMomentPathFunction : public GeometricMomentPathFunction<TInputPath, TOutput, TPrecision>
41 {
42 public:
46  typedef itk::SmartPointer<Self> Pointer;
47  typedef itk::SmartPointer<const Self> ConstPointer;
48 
51 
53  typedef typename Superclass::PathType PathType;
54  typedef typename Superclass::PathConstPointer PathConstPointer;
55  typedef typename PathType::ContinuousIndexType VertexType;
56  typedef itk::VectorContainer<unsigned, VertexType> VertexListType;
57  typedef typename VertexListType::ConstPointer VertexListPointer;
58 
61 
63  typedef typename Superclass::OutputType RealType;
64 
65 protected:
67  {
68  }
70  {
71  }
72  void PrintSelf(std::ostream& os, itk::Indent indent) const override
73  {
74  Superclass::PrintSelf(os, indent);
75  }
76 
77 private:
78  RealMomentPathFunction(const Self&) = delete;
79  void operator=(const Self&) = delete;
80 };
81 
82 } // namespace otb
83 
84 #endif
otb::RealMomentPathFunction::PathConstPointer
Superclass::PathConstPointer PathConstPointer
Definition: otbRealMomentPathFunction.h:54
otb::RealMomentPathFunction::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbRealMomentPathFunction.h:72
otb::RealMomentPathFunction::Self
RealMomentPathFunction Self
Definition: otbRealMomentPathFunction.h:44
GapFilling::PrecisionType
double PrecisionType
Definition: otbDateUtils.h:29
otb::RealMomentPathFunction::VertexType
PathType::ContinuousIndexType VertexType
Definition: otbRealMomentPathFunction.h:55
otb::RealMomentPathFunction::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbRealMomentPathFunction.h:47
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::RealMomentPathFunction::VertexListPointer
VertexListType::ConstPointer VertexListPointer
Definition: otbRealMomentPathFunction.h:57
otb::RealMomentPathFunction::Superclass
GeometricMomentPathFunction< TInputPath, TOutput, TPrecision > Superclass
Definition: otbRealMomentPathFunction.h:45
otb::RealMomentPathFunction::RealType
Superclass::OutputType RealType
Definition: otbRealMomentPathFunction.h:63
otb::RealMomentPathFunction::RealMomentPathFunction
RealMomentPathFunction()
Definition: otbRealMomentPathFunction.h:66
otb::RealMomentPathFunction::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbRealMomentPathFunction.h:46
otb::RealMomentPathFunction::VertexListType
itk::VectorContainer< unsigned, VertexType > VertexListType
Definition: otbRealMomentPathFunction.h:56
otb::RealMomentPathFunction
Virtual class for the Real moments for a path.
Definition: otbRealMomentPathFunction.h:40
otb::GeometricMomentPathFunction
Virtual class for the Geometric moments for an path function.
Definition: otbGeometricMomentPathFunction.h:39
otb::RealMomentPathFunction::PathType
Superclass::PathType PathType
Definition: otbRealMomentPathFunction.h:50
otbGeometricMomentPathFunction.h
otb::RealMomentPathFunction::PrecisionType
Superclass::PrecisionType PrecisionType
Definition: otbRealMomentPathFunction.h:60
otb::RealMomentPathFunction::~RealMomentPathFunction
~RealMomentPathFunction() override
Definition: otbRealMomentPathFunction.h:69