OTB  10.0.0
Orfeo Toolbox
otbFlusserPathFunction.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 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
Calculate the Flusser's invariant parameters.
Superclass::PathType PathType
FlusserPathFunction(const Self &)=delete
Superclass::PrecisionType PrecisionType
RealMomentPathFunction< TInputPath, TOutput, TPrecision > Superclass
Superclass::PathConstPointer PathConstPointer
itk::SmartPointer< Self > Pointer
void operator=(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
PathType::ContinuousIndexType VertexType
VertexListType::ConstPointer VertexListPointer
Superclass::RealType RealType
itk::VectorContainer< unsigned, VertexType > VertexListType
Virtual class for the Real moments for a path.
Superclass::PathConstPointer PathConstPointer
Superclass::PrecisionType PrecisionType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.