OTB  6.7.0
Orfeo Toolbox
otbSarRadiometricCalibrationToImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2011 Insight Software Consortium
3  * Copyright (C) 2005-2019 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 otbSarRadiometricCalibrationToImageFilter_h
23 #define otbSarRadiometricCalibrationToImageFilter_h
24 
27 
28 namespace otb
29 {
30 
61 template <class TInputImage, class TOutputImage>
63  public FunctionToImageFilter<TInputImage, TOutputImage,
64  SarRadiometricCalibrationFunction<TInputImage> >
65 {
66 public:
69  typedef FunctionToImageFilter<TInputImage, TOutputImage,
73 
75  itkNewMacro(Self);
76 
79 
83  typedef typename Superclass::InputImageType InputImageType;
84  typedef typename Superclass::InputImagePointer InputImagePointer;
85  typedef typename Superclass::InputImageRegionType InputImageRegionType;
86  typedef typename Superclass::InputImagePixelType InputImagePixelType;
87  typedef typename Superclass::OutputImageType OutputImageType;
88  typedef typename Superclass::OutputImagePointer OutputImagePointer;
89  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
90  typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
91 
94  typedef typename Superclass::FunctionType FunctionType;
95  typedef typename Superclass::FunctionPointer FunctionPointer;
96  typedef typename Superclass::FunctionValueType FunctionValueType;
97  typedef typename Superclass::FunctionPositionType FunctionPositionType;
98  typedef typename FunctionType::ParametricFunctionPointer ParametricFunctionPointer;
99  typedef typename FunctionType::ParametricFunctionConstPointer ParametricFunctionConstPointer;
100  typedef typename FunctionType::ParametricFunctionType ParametricFunctionType;
101 
102 
104  void SetEnableNoise(bool inArg)
105  {
106  this->GetFunction()->SetEnableNoise(inArg);
107  }
108 
109  itkSetMacro(LookupSelected, short);
110  itkGetConstMacro(LookupSelected, short);
111 
112 protected:
115 
118 
120  void GenerateOutputInformation() override;
121 
123  void BeforeThreadedGenerateData() override;
124 
125 private:
126 
127  SarRadiometricCalibrationToImageFilter(const Self &) = delete;
128  void operator =(const Self&) = delete;
129 
130 
132 
133 };
134 
135 } // end namespace otb
136 
137 #ifndef OTB_MANUAL_INSTANTIATION
139 #endif
140 
141 #endif
FunctionType::ParametricFunctionConstPointer ParametricFunctionConstPointer
FunctionToImageFilter< TInputImage, TOutputImage, SarRadiometricCalibrationFunction< TInputImage > > Superclass
Evaluates the SarRadiometricCalibrationFunction onto a source image The BeforeThreadedGenerateData cr...
Evaluates a ImageFunction onto a source image.
Calculate the backscatter for the given pixel.