OTB  10.0.0
Orfeo Toolbox
otbPointSetFunction.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 otbPointSetFunction_h
22 #define otbPointSetFunction_h
23 
24 #include "itkSpatialFunction.h"
25 #include "itkProcessObject.h"
26 
27 namespace otb
28 {
29 
38 template <class TPointSet, class TOutput>
39 class ITK_EXPORT PointSetFunction : public itk::SpatialFunction<TOutput, 2 /* TODO : change 2 by PointType::PointDimension*/, typename TPointSet::PointType>
40 {
41 public:
42 
45  typedef itk::SpatialFunction<TOutput, 2, typename TPointSet::PointType> Superclass;
46 
48  itkTypeMacro(PointSetFunction, itk::SpatialFunction);
49 
51  typedef TPointSet PointSetType;
52  typedef typename PointSetType::Pointer PointSetPointer;
53  typedef typename PointSetType::ConstPointer PointSetConstPointer;
54 
56  typedef TOutput OutputType;
57 
59  itkGetConstObjectMacro(PointSet, PointSetType);
60 
62  {
63  m_PointSet = PointSet;
64  }
65 
68  {
69  m_PointSet = PointSet;
70  }
71 
72 protected:
74  ~PointSetFunction() override
75  {
76  }
77 
78  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
79 
80 private:
81  PointSetFunction(const Self&) = delete;
82  void operator=(const Self&) = delete;
83 
85 
86 };
87 
88 } // end namespace otb
89 
90 #ifndef OTB_MANUAL_INSTANTIATION
91 #include "otbPointSetFunction.hxx"
92 #endif
93 
94 #endif
Calculate the density in the neighborhood of a pixel.
itk::SpatialFunction< TOutput, 2, typename TPointSet::PointType > Superclass
void operator=(const Self &)=delete
PointSetType::Pointer PointSetPointer
PointSetType::ConstPointer PointSetConstPointer
void SetPointSet(PointSetConstPointer PointSet)
void SetPointSet(PointSetPointer PointSet)
PointSetFunction(const Self &)=delete
PointSetConstPointer m_PointSet
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.