OTB  9.0.0
Orfeo Toolbox
otbFlusserPathFunction.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 otbFlusserPathFunction_h
22 #define otbFlusserPathFunction_h
23 
25 
26 namespace otb
27 {
28 
64 
65 template <class TInputPath, class TOutput = double, class TPrecision = double>
66 class ITK_EXPORT FlusserPathFunction : public RealMomentPathFunction<TInputPath, TOutput, TPrecision>
67 {
68 public:
72  typedef itk::SmartPointer<Self> Pointer;
73  typedef itk::SmartPointer<const Self> ConstPointer;
74 
77 
79  itkNewMacro(Self);
80 
82  typedef typename Superclass::PathType PathType;
84  typedef typename PathType::ContinuousIndexType VertexType;
85  typedef itk::VectorContainer<unsigned, VertexType> VertexListType;
86  typedef typename VertexListType::ConstPointer VertexListPointer;
87 
88  typedef typename Superclass::RealType RealType;
89 
92 
94  RealType Evaluate(const PathType& path) const override;
95  virtual RealType Evaluate() const;
96 
99  itkSetMacro(MomentNumber, short);
100  itkGetConstReferenceMacro(MomentNumber, short);
102 
103 protected:
106  {
107  }
108  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
109 
110 private:
111  FlusserPathFunction(const Self&) = delete;
112  void operator=(const Self&) = delete;
113 
115 };
116 
117 } // namespace otb
118 
119 #ifndef OTB_MANUAL_INSTANTIATION
121 #endif
122 
123 #endif
otb::FlusserPathFunction::Superclass
RealMomentPathFunction< TInputPath, TOutput, TPrecision > Superclass
Definition: otbFlusserPathFunction.h:71
otb::FlusserPathFunction::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbFlusserPathFunction.h:72
otb::FlusserPathFunction::VertexListType
itk::VectorContainer< unsigned, VertexType > VertexListType
Definition: otbFlusserPathFunction.h:85
otb::RealMomentPathFunction::PathConstPointer
Superclass::PathConstPointer PathConstPointer
Definition: otbRealMomentPathFunction.h:54
otb::FlusserPathFunction::RealType
Superclass::RealType RealType
Definition: otbFlusserPathFunction.h:88
otbRealMomentPathFunction.h
otb::FlusserPathFunction
Calculate the Flusser's invariant parameters.
Definition: otbFlusserPathFunction.h:66
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::FlusserPathFunction::VertexType
PathType::ContinuousIndexType VertexType
Definition: otbFlusserPathFunction.h:84
otb::FlusserPathFunction::PathConstPointer
Superclass::PathConstPointer PathConstPointer
Definition: otbFlusserPathFunction.h:83
otbFlusserPathFunction.hxx
otb::FlusserPathFunction::PrecisionType
Superclass::PrecisionType PrecisionType
Definition: otbFlusserPathFunction.h:91
otb::RealMomentPathFunction::RealType
Superclass::OutputType RealType
Definition: otbRealMomentPathFunction.h:63
otb::FlusserPathFunction::VertexListPointer
VertexListType::ConstPointer VertexListPointer
Definition: otbFlusserPathFunction.h:86
otb::RealMomentPathFunction
Virtual class for the Real moments for a path.
Definition: otbRealMomentPathFunction.h:40
otb::FlusserPathFunction::~FlusserPathFunction
~FlusserPathFunction() override
Definition: otbFlusserPathFunction.h:105
otb::RealMomentPathFunction::PathType
Superclass::PathType PathType
Definition: otbRealMomentPathFunction.h:50
otb::FlusserPathFunction::m_MomentNumber
short m_MomentNumber
Definition: otbFlusserPathFunction.h:114
otb::FlusserPathFunction::Self
FlusserPathFunction Self
Definition: otbFlusserPathFunction.h:70
otb::FlusserPathFunction::PathType
Superclass::PathType PathType
Definition: otbFlusserPathFunction.h:79
otb::RealMomentPathFunction::PrecisionType
Superclass::PrecisionType PrecisionType
Definition: otbRealMomentPathFunction.h:60
otb::FlusserPathFunction::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbFlusserPathFunction.h:73