OTB  10.0.0
Orfeo Toolbox
otbGaborFilterGenerator.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2011 Insight Software Consortium
3  * Copyright (C) 2005-2024 Centre National d'Etudes Spatiales (CNES)
4  *
5  * This file is part of Orfeo Toolbox
6  *
7  * https://www.orfeo-toolbox.org/
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef otbGaborFilterGenerator_h
23 #define otbGaborFilterGenerator_h
24 
25 #include "itkObject.h"
26 #include "itkObjectFactory.h"
27 
28 #include "itkArray.h"
29 #include "itkSize.h"
30 
31 namespace otb
32 {
33 
72 template <class TPrecision>
73 class GaborFilterGenerator : public itk::Object
74 {
75 public:
76  // Standard class typedefs
78  typedef itk::Object Superclass;
79  typedef itk::SmartPointer<Self> Pointer;
80  typedef itk::SmartPointer<const Self> ConstPointer;
81 
82  // Standard new and type macro
83  itkNewMacro(Self);
84  itkTypeMacro(GaborFilterGenerator, Object);
85 
86  // useful typedefs
87  typedef TPrecision PrecisionType;
88  typedef itk::Array<PrecisionType> ArrayType;
89  typedef itk::Size<2> RadiusType;
90 
92  itkSetMacro(A, PrecisionType);
93  itkGetMacro(A, PrecisionType);
94  itkSetMacro(B, PrecisionType);
95  itkGetMacro(B, PrecisionType);
96  itkSetMacro(Theta, PrecisionType);
97  itkGetMacro(Theta, PrecisionType);
98  itkSetMacro(Phi, PrecisionType);
99  itkGetMacro(Phi, PrecisionType);
100  itkSetMacro(U0, PrecisionType);
101  itkGetMacro(U0, PrecisionType);
102  itkSetMacro(V0, PrecisionType);
103  itkGetMacro(V0, PrecisionType);
104  itkSetMacro(Radius, RadiusType);
105  itkGetConstReferenceMacro(Radius, RadiusType);
107 
109  const ArrayType& GetFilter();
110 
111 protected:
114 
117  {
118  }
119 
121  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
122 
124  void GenerateFilter();
125 
128  void Modified() const override;
129 
130 private:
131  GaborFilterGenerator(const Self&) = delete;
132  void operator=(const Self&) = delete;
133 
136 
144 
147 
150 };
151 } // end namespace otb
152 
153 #ifndef OTB_MANUAL_INSTANTIATION
155 #endif
156 
157 #endif
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::Array< PrecisionType > ArrayType
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
GaborFilterGenerator(const Self &)=delete
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.