OTB  9.0.0
Orfeo Toolbox
otbGammaMAPImageFilter.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 otbGammaMAPImageFilter_h
22 #define otbGammaMAPImageFilter_h
23 
24 #include "itkImageToImageFilter.h"
25 #include "itkImage.h"
26 #include "itkNumericTraits.h"
27 
28 namespace otb
29 {
30 
42 template <class TInputImage, class TOutputImage>
43 class ITK_EXPORT GammaMAPImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
44 {
45 public:
47  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
48  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
50 
51  typedef TInputImage InputImageType;
52  typedef TOutputImage OutputImageType;
53 
56  typedef itk::ImageToImageFilter<InputImageType, OutputImageType> Superclass;
57  typedef itk::SmartPointer<Self> Pointer;
58  typedef itk::SmartPointer<const Self> ConstPointer;
59 
61  itkNewMacro(Self);
62 
64  itkTypeMacro(GammaMAPImageFilter, ImageToImageFilter);
65 
66  typedef typename InputImageType::PixelType InputPixelType;
67  typedef typename OutputImageType::PixelType OutputPixelType;
68  typedef typename itk::NumericTraits<InputPixelType>::RealType InputRealType;
69  typedef typename InputImageType::RegionType InputImageRegionType;
70  typedef typename OutputImageType::RegionType OutputImageRegionType;
71  typedef typename InputImageType::SizeType SizeType;
72 
74  itkSetMacro(Radius, SizeType);
75 
77  itkGetConstReferenceMacro(Radius, SizeType);
78 
80  itkSetMacro(NbLooks, double);
81 
83  itkGetConstReferenceMacro(NbLooks, double);
84 
91  void GenerateInputRequestedRegion() override;
92 
93 protected:
96  {
97  }
98  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
99 
103  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
104 
105 private:
106  GammaMAPImageFilter(const Self&) = delete;
107  void operator=(const Self&) = delete;
108 
111 
113  double m_NbLooks;
114 };
115 } // end namespace otb
116 
117 #ifndef OTB_MANUAL_INSTANTIATION
119 #endif
120 
121 #endif
otb::GammaMAPImageFilter::m_Radius
SizeType m_Radius
Definition: otbGammaMAPImageFilter.h:110
otb::GammaMAPImageFilter::~GammaMAPImageFilter
~GammaMAPImageFilter() override
Definition: otbGammaMAPImageFilter.h:95
otb::GammaMAPImageFilter::InputImageType
TInputImage InputImageType
Definition: otbGammaMAPImageFilter.h:51
otb::GammaMAPImageFilter::Superclass
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition: otbGammaMAPImageFilter.h:56
otb::GammaMAPImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbGammaMAPImageFilter.h:69
otb::GammaMAPImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbGammaMAPImageFilter.h:67
otbGammaMAPImageFilter.hxx
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::GammaMAPImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbGammaMAPImageFilter.h:52
otb::GammaMAPImageFilter::m_NbLooks
double m_NbLooks
Definition: otbGammaMAPImageFilter.h:113
otb::GammaMAPImageFilter
Anti-speckle image filter.
Definition: otbGammaMAPImageFilter.h:43
otb::GammaMAPImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbGammaMAPImageFilter.h:70
otb::GammaMAPImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbGammaMAPImageFilter.h:58
otb::GammaMAPImageFilter::Self
GammaMAPImageFilter Self
Definition: otbGammaMAPImageFilter.h:55
otb::GammaMAPImageFilter::InputRealType
itk::NumericTraits< InputPixelType >::RealType InputRealType
Definition: otbGammaMAPImageFilter.h:68
otb::GammaMAPImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbGammaMAPImageFilter.h:64
otb::GammaMAPImageFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbGammaMAPImageFilter.h:71
otb::GammaMAPImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbGammaMAPImageFilter.h:57