OTB  9.0.0
Orfeo Toolbox
otbPointSetDensityEpanechnikovFunction.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 otbPointSetDensityEpanechnikovFunction_h
22 #define otbPointSetDensityEpanechnikovFunction_h
23 
24 #include "otbPointSetFunction.h"
25 #include "itkPoint.h"
26 
27 namespace otb
28 {
29 
39 template <class TPointSet, class TOutput>
40 class ITK_EXPORT PointSetDensityEpanechnikovFunction : public PointSetFunction<TPointSet, TOutput>
41 {
42 public:
43 
47  typedef itk::SmartPointer<Self> Pointer;
48  typedef itk::SmartPointer<const Self> ConstPointer;
49 
52 
54  itkNewMacro(Self);
55 
57  typedef TPointSet PointSetType;
58  typedef typename Superclass::InputType InputType;
59  typedef typename PointSetType::Pointer PointSetPointerType;
60 
62  typedef TOutput OutputType;
63 
65  itkSetMacro(Radius, unsigned int);
66  itkGetMacro(Radius, unsigned int);
68 
70  OutputType Evaluate(const InputType& input) const override;
71 
72 protected:
75  {
76  }
77 
78  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
79 
80 private:
81  PointSetDensityEpanechnikovFunction(const Self&) = delete;
82  void operator=(const Self&) = delete;
83 
84  unsigned int m_Radius;
85 };
86 
87 } // end namespace otb
88 
89 #ifndef OTB_MANUAL_INSTANTIATION
91 #endif
92 
93 #endif
otb::PointSetDensityEpanechnikovFunction::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPointSetDensityEpanechnikovFunction.h:47
otb::PointSetDensityEpanechnikovFunction::InputType
Superclass::InputType InputType
Definition: otbPointSetDensityEpanechnikovFunction.h:58
otb::PointSetDensityEpanechnikovFunction::Superclass
PointSetFunction< TPointSet, TOutput > Superclass
Definition: otbPointSetDensityEpanechnikovFunction.h:46
otb::PointSetDensityEpanechnikovFunction::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPointSetDensityEpanechnikovFunction.h:48
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PointSetDensityEpanechnikovFunction::m_Radius
unsigned int m_Radius
Definition: otbPointSetDensityEpanechnikovFunction.h:84
otb::PointSetDensityEpanechnikovFunction::PointSetType
TPointSet PointSetType
Definition: otbPointSetDensityEpanechnikovFunction.h:54
otb::PointSetFunction::OutputType
TOutput OutputType
Definition: otbPointSetFunction.h:55
otbPointSetFunction.h
otb::PointSetDensityEpanechnikovFunction::PointSetDensityEpanechnikovFunction
PointSetDensityEpanechnikovFunction()
Definition: otbPointSetDensityEpanechnikovFunction.h:73
otb::PointSetDensityEpanechnikovFunction::OutputType
TOutput OutputType
Definition: otbPointSetDensityEpanechnikovFunction.h:62
otb::PointSetDensityEpanechnikovFunction::Self
PointSetDensityEpanechnikovFunction Self
Definition: otbPointSetDensityEpanechnikovFunction.h:45
otb::PointSetDensityEpanechnikovFunction::PointSetPointerType
PointSetType::Pointer PointSetPointerType
Definition: otbPointSetDensityEpanechnikovFunction.h:59
otb::PointSetDensityEpanechnikovFunction
Calculate the density in the neighborhood of a pixel using an Epanechnikov function.
Definition: otbPointSetDensityEpanechnikovFunction.h:40
otbPointSetDensityEpanechnikovFunction.hxx
otb::PointSetFunction
Calculate the density in the neighborhood of a pixel.
Definition: otbPointSetFunction.h:39
otb::PointSetDensityEpanechnikovFunction::~PointSetDensityEpanechnikovFunction
~PointSetDensityEpanechnikovFunction() override
Definition: otbPointSetDensityEpanechnikovFunction.h:74