OTB  9.0.0
Orfeo Toolbox
otbHillShadingFilter.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 otbHillShadingFilter_h
22 #define otbHillShadingFilter_h
23 
25 #include "otbHillShadingFunctor.h"
26 
27 namespace otb
28 {
41 template <class TInputImage, class TOutputImage>
42 class ITK_EXPORT HillShadingFilter
44  TInputImage, TOutputImage, Functor::HillShadingFunctor<itk::ConstNeighborhoodIterator<TInputImage>, TInputImage, typename TOutputImage::PixelType>>
45 {
46 
47 public:
50 
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
55  itkNewMacro(Self);
56 
59 
60  double GetAzimuthLight() const
61  {
62  return this->GetFunctor().GetAzimuthLight();
63  }
64 
65  void SetAzimuthLight(double az)
66  {
67  this->GetFunctor().SetAzimuthLight(az);
68  }
69 
70  double GetElevationLight() const
71  {
72  return this->GetFunctor().GetElevationLight();
73  }
74 
75  void SetElevationLight(double el)
76  {
77  this->GetFunctor().SetElevationLight(el);
78  }
79 
80 protected:
82  {
83  }
84  ~HillShadingFilter() override
85  {
86  }
87 
88 private:
89  HillShadingFilter(const Self&) = delete;
90  void operator=(const Self&) = delete;
91 };
92 }
93 
94 #endif
otb::HillShadingFilter::GetElevationLight
double GetElevationLight() const
Definition: otbHillShadingFilter.h:70
otb::HillShadingFilter::Self
HillShadingFilter Self
Definition: otbHillShadingFilter.h:49
otb::HillShadingFilter::HillShadingFilter
HillShadingFilter()
Definition: otbHillShadingFilter.h:81
otb::HillShadingFilter::~HillShadingFilter
~HillShadingFilter() override
Definition: otbHillShadingFilter.h:84
otbUnaryFunctorNeighborhoodImageFilter.h
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::HillShadingFilter
Filter to compute the lambertian of a surface given as an image.
Definition: otbHillShadingFilter.h:42
otb::HillShadingFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbHillShadingFilter.h:52
otb::HillShadingFilter::SetAzimuthLight
void SetAzimuthLight(double az)
Definition: otbHillShadingFilter.h:65
otb::HillShadingFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbHillShadingFilter.h:51
otb::HillShadingFilter::SetElevationLight
void SetElevationLight(double el)
Definition: otbHillShadingFilter.h:75
otbHillShadingFunctor.h
otb::UnaryFunctorNeighborhoodImageFilter
Implements neighborhood-wise generic operation on image.
Definition: otbUnaryFunctorNeighborhoodImageFilter.h:43
otb::HillShadingFilter::GetAzimuthLight
double GetAzimuthLight() const
Definition: otbHillShadingFilter.h:60