OTB  10.0.0
Orfeo Toolbox
otbRealMomentPathFunction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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;
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
Virtual class for the Geometric moments for an path function.
Superclass::InputPathConstPointer PathConstPointer
Virtual class for the Real moments for a path.
RealMomentPathFunction(const Self &)=delete
PathType::ContinuousIndexType VertexType
itk::SmartPointer< Self > Pointer
Superclass::PathConstPointer PathConstPointer
VertexListType::ConstPointer VertexListPointer
Superclass::PrecisionType PrecisionType
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)=delete
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::VectorContainer< unsigned, VertexType > VertexListType
GeometricMomentPathFunction< TInputPath, TOutput, TPrecision > Superclass
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.