OTB  6.7.0
Orfeo Toolbox
otbSarBrightnessToImageFilter.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 otbSarBrightnessToImageFilter_h
23 #define otbSarBrightnessToImageFilter_h
24 
27 
28 namespace otb
29 {
30 
41 template <class TInputImage, class TOutputImage>
42 class ITK_EXPORT SarBrightnessToImageFilter :
43  public FunctionToImageFilter<TInputImage, TOutputImage,
44  SarBrightnessFunction<TInputImage> >
45 {
46 public:
49  typedef FunctionToImageFilter<TInputImage, TOutputImage,
53 
55  itkNewMacro(Self);
56 
59 
63  typedef typename Superclass::InputImageType InputImageType;
64  typedef typename Superclass::InputImagePointer InputImagePointer;
65  typedef typename Superclass::InputImageRegionType InputImageRegionType;
66  typedef typename Superclass::InputImagePixelType InputImagePixelType;
67  typedef typename Superclass::OutputImageType OutputImageType;
68  typedef typename Superclass::OutputImagePointer OutputImagePointer;
69  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
70  typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
71 
74  typedef typename Superclass::FunctionType FunctionType;
75  typedef typename Superclass::FunctionPointer FunctionPointer;
76  typedef typename Superclass::FunctionValueType FunctionValueType;
77  typedef typename Superclass::FunctionPositionType FunctionPositionType;
78  typedef typename FunctionType::ParametricFunctionPointer ParametricFunctionPointer;
79  typedef typename FunctionType::ParametricFunctionConstPointer ParametricFunctionConstPointer;
80  typedef typename FunctionType::ParametricFunctionType ParametricFunctionType;
81 
82  void SetEnableNoise(bool inArg)
83  {
84  this->GetFunction()->SetEnableNoise(inArg);
85  }
86 
87 protected:
90 
92  void BeforeThreadedGenerateData() override;
93 
94  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
95 private:
96  SarBrightnessToImageFilter(const Self &) = delete;
97  void operator =(const Self&) = delete;
98 
99 };
100 
101 } // end namespace otb
102 
103 #ifndef OTB_MANUAL_INSTANTIATION
105 #endif
106 
107 #endif
Evaluates the SarBrightnessFunction onto a source image.
Superclass::FunctionValueType FunctionValueType
Superclass::InputImagePointer InputImagePointer
Superclass::FunctionPointer FunctionPointer
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImagePixelType InputImagePixelType
FunctionType::ParametricFunctionConstPointer ParametricFunctionConstPointer
Evaluates a ImageFunction onto a source image.
Superclass::OutputImageType OutputImageType
Calculate the backscatter for the given pixel.
FunctionType::ParametricFunctionType ParametricFunctionType
FunctionType::ParametricFunctionPointer ParametricFunctionPointer
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputImagePixelType OutputImagePixelType
FunctionToImageFilter< TInputImage, TOutputImage, SarBrightnessFunction< TInputImage > > Superclass
Superclass::OutputImagePointer OutputImagePointer
Superclass::FunctionPositionType FunctionPositionType
Superclass::OutputImageRegionType OutputImageRegionType