OTB  10.0.0
Orfeo Toolbox
otbReliefColormapFunctor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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 otbReliefColormapFunctor_h
22 #define otbReliefColormapFunctor_h
23 
24 #include "itkColormapFunction.h"
25 
26 namespace otb
27 {
28 
29 namespace Functor
30 {
31 
45 template <class TScalar, class TRGBPixel>
46 class ITK_EXPORT ReliefColormapFunctor : public itk::Function::ColormapFunction<TScalar, TRGBPixel>
47 {
48 public:
50  typedef itk::Function::ColormapFunction<TScalar, TRGBPixel> Superclass;
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
55  itkNewMacro(Self);
56 
57  typedef typename Superclass::RGBPixelType RGBPixelType;
58  typedef typename Superclass::ScalarType ScalarType;
59  typedef typename Superclass::RealType RealType;
60 
61  RGBPixelType operator()(const TScalar&) const override;
62 
63 protected:
66  {
67  }
68 
69 private:
70  ReliefColormapFunctor(const Self&) = delete;
71  void operator=(const Self&) = delete;
72 };
73 
74 } // end namespace functor
75 
76 } // end namespace otb
77 
78 #ifndef OTB_MANUAL_INSTANTIATION
80 #endif
81 
82 #endif
Function object which maps a scalar value into an RGB colormap value for relief representation.
itk::Function::ColormapFunction< TScalar, TRGBPixel > Superclass
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)=delete
ReliefColormapFunctor(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.